summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-06-29 16:30:13 +0000
committerCédric Krier <cedk@gentoo.org>2006-06-29 16:30:13 +0000
commit65b6d00849ace07e8c59dbbdccfc0bae5f3f71da (patch)
tree80f2651ed4a5694e884419351b12f885fee02591 /net-firewall/nufw/files
parentSend a message with commit this time (diff)
downloadsunrise-65b6d00849ace07e8c59dbbdccfc0bae5f3f71da.tar.gz
sunrise-65b6d00849ace07e8c59dbbdccfc0bae5f3f71da.tar.bz2
sunrise-65b6d00849ace07e8c59dbbdccfc0bae5f3f71da.zip
net-firewall/nufw - add use flag, fix depend
svn path=/sunrise/; revision=372
Diffstat (limited to 'net-firewall/nufw/files')
-rw-r--r--net-firewall/nufw/files/nuauth-init.d13
1 files changed, 11 insertions, 2 deletions
diff --git a/net-firewall/nufw/files/nuauth-init.d b/net-firewall/nufw/files/nuauth-init.d
index bde2e4b9b..6e2788890 100644
--- a/net-firewall/nufw/files/nuauth-init.d
+++ b/net-firewall/nufw/files/nuauth-init.d
@@ -4,14 +4,23 @@ 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}
+ 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
+ start-stop-daemon --stop --quiet --pidfile /var/run/nuauth/nuauth.pid
eend $?
}