aports/main/lsyncd/lsyncd.initd
2014-09-18 07:39:56 +00:00

21 lines
425 B
Plaintext

#!/sbin/runscript
command=/usr/bin/lsyncd
pidfile=/var/run/lsyncd/${SVCNAME}.pid
conf=/etc/lsyncd/${SVCNAME}.lua
: ${exec_user:=root}
: ${exec_group:=root}
start_stop_daemon_args="--user $exec_user --group $exec_group --chdir /etc/lsyncd"
depend() {
need net
after firewall
}
start_pre() {
checkpath --directory ${pidfile%/*} --owner ${exec_user}:${exec_group}
command_args="$conf -pidfile $pidfile $command_args"
}