initial commit
This commit is contained in:
2
net-firewall/nufw/files/nuauth-conf.d
Normal file
2
net-firewall/nufw/files/nuauth-conf.d
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
NUAUTH_OPTIONS=""
|
26
net-firewall/nufw/files/nuauth-init.d
Normal file
26
net-firewall/nufw/files/nuauth-init.d
Normal file
@ -0,0 +1,26 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
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() {
|
||||
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 /var/run/nuauth/nuauth.pid
|
||||
eend $?
|
||||
}
|
2
net-firewall/nufw/files/nufw-conf.d
Normal file
2
net-firewall/nufw/files/nufw-conf.d
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
NUFW_OPTIONS="-k /etc/nufw/nufw.key -c /etc/nufw/nufw.pem -d 127.0.0.1 -p 4129"
|
17
net-firewall/nufw/files/nufw-init.d
Normal file
17
net-firewall/nufw/files/nufw-init.d
Normal file
@ -0,0 +1,17 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
depend() {
|
||||
before net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting nufw"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/nufw -- -D ${NUFW_OPTIONS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping nufw"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/nufw.pid
|
||||
eend $?
|
||||
}
|
Reference in New Issue
Block a user