aboutsummaryrefslogtreecommitdiffstats
path: root/testing/syncthing-inotify/syncthing-inotify.initd
blob: 64589eafefb36b30ea56e58e31867b52b29b6188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run

name=$RC_SVCNAME
command=/usr/bin/syncthing-inotify
command_args="${SYNCTHING_INOTIFY_ARGS}"
command_user="${SYNCTHING_INOTIFY_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
}