mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
* 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.
22 lines
527 B
Plaintext
22 lines
527 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
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
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner $command_user --mode 0775 \
|
|
/var/log/$RC_SVCNAME
|
|
}
|
|
|