mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
21 lines
425 B
Plaintext
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"
|
|
}
|