Splux Linux

source-based Linux using SPS

SPS · log · files · refs · tags · releases · people · languages · GitHub · file

lib/setup/sv/openrc/syncthing


OpenRC runscript

308 bytes at 2909919 · GitHub

#!/sbin/openrc-run
description="Syncthing file synchronization"
command="/usr/bin/syncthing"
command_args="serve --no-browser --home=/var/lib/syncthing"
command_background="yes"
pidfile="/run/syncthing.pid"

depend() {
    use net
    after net
}

start_pre() {
	install -d -m 0755 /var/lib/syncthing || :
}