neon-sftp-bridge should systemd socket activate
Closed, ResolvedPublic

Description

Systemd can listen for us and hand over the FD upon service start. This makes the service more restartable as requests aren't lost during the downtime. Restarts during sending are still a problem though as I think the sending stream would get interrupted and upon start not resumed.

https://github.com/coreos/go-systemd
https://github.com/coreos/go-systemd/tree/master/examples/activation/httpserver

sitter moved this task from Blocked to Ready To Do on the Neon board.Apr 27 2017, 6:41 AM

it's a normal user unit rather than socket activated currently
.config/systemd/user/neon-sftp-bridge.service

geoip-kde-org has this implemented properly for an example

sitter closed this task as Resolved.Mar 13 2019, 2:27 PM
sitter claimed this task.

https://commits.kde.org/sysadmin/neon-sftp-bridge/a1def5560a8aa66e77c08a350caf6ca48e78fb94

seems to be working. should there be problems in the next couple of days this change is probably why ;)