blob: 04bc0fd282ad88b55383b5815dc4311c33828d1a (
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
28
29
30
31
|
#!/usr/bin/openrc-run
depend() {
after avahi-daemon
need avahi-daemon
}
start() {
ebegin "Starting mandos server"
start-stop-daemon --start -b \
--make-pidfile \
--pidfile /run/mandos.pid \
--stdout /var/log/mandos.stdout \
--stderr /var/log/mandos.stderr \
--exec /usr/bin/mandos -- \
--debug \
--configdir /etc/mandos
eend $?
}
stop() {
ebegin "Stopping mandos server"
start-stop-daemon --stop \
--pidfile /run/mandos.pid \
--retry=TERM/20/KILL/5
eend $?
}
|