cells-sync icon indicating copy to clipboard operation
cells-sync copied to clipboard

Systemd integration

Open tbleiker opened this issue 5 years ago • 2 comments

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.

tbleiker avatar Oct 26 '19 11:10 tbleiker

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.

tbleiker avatar Oct 26 '19 20:10 tbleiker

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.

tbleiker avatar Nov 01 '19 10:11 tbleiker