cells-sync
cells-sync copied to clipboard
Systemd integration
Great to see a systemd integration! In my opinion, however, the systemd files should be copied to
/usr/lib/systemd/user/if cells-sync is installed system wide, or~/.local/share/systemd/user/if cells-sync is put somewhere in the user home directeroy.
In addition, the part User=root should be dropped in the systemd file. The service should then be started as a user (systemd --user start com.pydio.CellsSync.service). This would also allow to start cells-sync for several users.
Okay, I realized that you are using https://github.com/kardianos/service. There is a pull request for systemd user support: https://github.com/kardianos/service/pull/185. Which however, got not yet merged.
I try to get it solved upstream (https://github.com/kardianos/service/issues/190).
When implemented, the additional option "optionUserService": true, should be set in config/service-config_linux.go. I'll test it as soon as it is implemented upstream and create a PR for cells-sync.