mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 02:52:46 +02:00
- Timestamps are not required in the output, they are already available in the system log. - The user script needs a supervisor to work properly. (Or needs to run in the background.)
15 lines
400 B
Bash
15 lines
400 B
Bash
#!/sbin/openrc-run
|
|
|
|
name=$RC_SVCNAME
|
|
supervisor=supervise-daemon
|
|
command=/usr/bin/syncthing
|
|
command_args="${SYNCTHING_ARGS:---no-browser --no-restart --log-format-timestamp=''}"
|
|
command_user="${SYNCTHING_USER:-syncthing}"
|
|
output_logger="logger -t '${RC_SVCNAME}' -p daemon.info"
|
|
error_logger="logger -t '${RC_SVCNAME}' -p daemon.error"
|
|
|
|
depend() {
|
|
use logger dns net
|
|
after firewall
|
|
}
|