diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-08-09 17:26:17 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-08-09 17:37:45 +0200 |
commit | f2f59860d9204a64bb206d144f2a69435cf06886 (patch) | |
tree | 6720bf02609ef136ae86d0661ade753717848dae /community/syncthing/syncthing.initd | |
parent | e512d8df9e777a8bd8086c4c884e599a0d7faa75 (diff) | |
download | aports-f2f59860d9204a64bb206d144f2a69435cf06886.tar.bz2 aports-f2f59860d9204a64bb206d144f2a69435cf06886.tar.xz |
community/syncthing: upgrade to 0.14.35
* do not fetch whole sha256-simd tarball but just patch it (even if s390x is disabled).
* enable strip again: https://dominik.honnef.co/posts/2016/10/go-and-strip.
* update initd to support multiple instances and add logging.
* fix build by removing symlink project in builddir and just copy it.
Diffstat (limited to 'community/syncthing/syncthing.initd')
-rw-r--r-- | community/syncthing/syncthing.initd | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/community/syncthing/syncthing.initd b/community/syncthing/syncthing.initd index a34c28ed0d..f64821ef04 100644 --- a/community/syncthing/syncthing.initd +++ b/community/syncthing/syncthing.initd @@ -1,13 +1,21 @@ #!/sbin/openrc-run -name=syncthing -command=/usr/bin/$name -command_args=$syncthing_args -start_stop_daemon_args="--background --user $name --group $name" +name=$RC_SVCNAME +command=/usr/bin/syncthing +command_args="${SYNCTHING_ARGS:--no-browser}" +command_user="${SYNCTHING_USER:-syncthing}" +pidfile=/run/${RC_SVCNAME}.pid +command_background=yes +start_stop_daemon_args="--stdout /var/log/$RC_SVCNAME/${RC_SVCNAME}.log --stderr /var/log/$RC_SVCNAME/${RC_SVCNAME}.log" depend() { - use logger dns - need net - after firewall + use logger dns + need net + after firewall +} + +start_pre() { + checkpath --directory --owner $command_user --mode 0775 \ + /var/log/$RC_SVCNAME } |