blob: d8ddf44f696efd7f971e79bcbc87d73a67126db3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/sbin/openrc-run
DAEMON=/usr/sbin/rscriptd
RSCRIPTD_OPTS="/etc/stargazer/rscriptd.conf"
PIDFILE="/run/rscriptd.pid"
depend() {
need net
provide rscriptd
}
start() {
ebegin "Starting rscriptd"
start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} -- ${RSCRIPTD_OPTS}
eend $?
}
stop() {
ebegin "Stopping rscriptd"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
rm -f ${PIDFILE}
eend $?
}
|