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

Debian SysVinit Script #2990

Closed
typomedia opened this issue Apr 18, 2016 · 6 comments
Closed

Debian SysVinit Script #2990

typomedia opened this issue Apr 18, 2016 · 6 comments
Labels
enhancement New features or improvements of some kind, as opposed to a problem (bug) frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Comments

@typomedia
Copy link

I am wrong here, but I have a SysVinit Script for Debian :)

https://gist.github.com/typomedia/3fe16c0e8214ce60b0b2

@AudriusButkevicius
Copy link
Member

I don't think this does everything the monitor process does, so it's fairly racy by relying on pid files.

@calmh
Copy link
Member

calmh commented Apr 18, 2016

It looks like it launches syncthing with the monitor process, and as init scripts goes it's among the least horrible I've seen. It could potentially live in etc/ somewhere. Pull request?

@calmh calmh added the enhancement New features or improvements of some kind, as opposed to a problem (bug) label May 22, 2016
@calmh calmh added this to the Unplanned (Contributions Welcome) milestone May 22, 2016
@calmh calmh removed this from the Unplanned (Contributions Welcome) milestone Feb 11, 2018
@georgespatton
Copy link
Contributor

Should we put this in etc/linux-sysv directory perhaps?

@mjk-gh
Copy link

mjk-gh commented Sep 17, 2020

Just wanted to let you guys know that the existence of above SysV init
script was very helpful for someone installing syncthing in Devuan
(SystemD-less Debian fork).

After ...

  • saving above script as /etc/init.d/syncthing
  • executing as root:
    • chmod 755 /etc/init.d/syncthing
    • adduser syncthing
    • update-rc.d syncthing defaults

... syncthing seems to work perfectly.

@phloggu
Copy link

phloggu commented Jan 4, 2021

Relay Server is missing the System V init script too. It would be nice if startup-scripts for different init systems would get packaged, as mentioned above, Devuan users e.g. rely on that.

The relay server is a bit more complicated than the syncthing client, because it might need an iptables port redirection. I've tried to script this; it runs for me. If it helps anyone, find syncthing-relaysrv_sysv-init.tar.gz for download to use as a starting point.

The init script uses pipexec and is logrotate safe. Use /etc/default/syncthing-relaysrv for configuration.

@calmh calmh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2023
@ecxod
Copy link

ecxod commented Aug 2, 2023

  • saving above script as /etc/init.d/syncthing

  • executing as root:

    • chmod 755 /etc/init.d/syncthing
    • adduser syncthing
    • update-rc.d syncthing defaults

works perfectly

@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Mar 9, 2024
@syncthing syncthing locked and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New features or improvements of some kind, as opposed to a problem (bug) frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

No branches or pull requests

8 participants