Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd integration #10

Open
tbleiker opened this issue Oct 26, 2019 · 2 comments
Open

Systemd integration #10

tbleiker opened this issue Oct 26, 2019 · 2 comments

Comments

@tbleiker
Copy link

tbleiker commented Oct 26, 2019

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
Copy link
Author

Okay, I realized that you are using https://github.com/kardianos/service. There is a pull request for systemd user support: kardianos/service#185. Which however, got not yet merged.

@tbleiker
Copy link
Author

tbleiker commented Nov 1, 2019

I try to get it solved upstream (kardianos/service#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant