blob: 1136c04335541be75e527e7f5ec4c8adf319cbc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/sbin/runscript
depend() {
use logger dns
need net
}
checkconfig() {
if [ ! -x /usr/sbin/osirisd ] ; then
eerror "Daemon image not found"
return 1
fi
return 0
}
start() {
ebegin "Starting osirismd"
checkconfig || ( eend $? "Config problems for osirismd daemon" || return 1 )
start-stop-daemon --start --exec /usr/sbin/osirismd -- -e /var/run/osiris/osirismd.pid ${OSIRISMD_OPTS}
eend $? "Failed to start osirismd daemon"
}
stop() {
ebegin "Stop osirismd"
start-stop-daemon --stop --quiet --pidfile /var/run/osiris/osirismd.pid
eend $? "Failed to stop osirismd daemon"
}
|