blob: db9c10b8a0d56c4a75fff61e022f780a7c500eeb (
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/openrc-run
depend() {
before net
}
checkconfig() {
if [ ! -e /etc/nufw/nuauth.conf ]; then
eerror "You need a /etc/nufw/nuauth.conf file to run nuauth"
eerror "There is sample file in /usr/share/doc/nufw-version/"
return 1
fi
}
start() {
checkpath -d /run/nuauth
checkconfig || return 1
ebegin "Starting nuauth"
start-stop-daemon --start --quiet --exec /usr/sbin/nuauth -- -D ${NUAUTH_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping nuauth"
start-stop-daemon --stop --quiet --pidfile /run/nuauth/nuauth.pid
eend $?
}
|