Changed files:
inn.init -> 1.26
else
exit 0
fi
-
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
+start() {
if [ ! -f /var/lock/subsys/inn ]; then
grep -v "#" /etc/news/inn.conf | grep ovmethod | grep ovdb 2>&1 >/dev/null
RETVAL=$?
fi
msg_starting "INN"
- daemon su news -c inndstart
+ daemon --user=news inndstart
if is_yes "$DOINNWATCH" ; then
msg_starting "INN Watch"
busy
else
msg_already_running "INN"
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/inn ]; then
msg_stopping "INN"
busy
else
msg_not_running INN
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
status)
status innd
- exit $?
+ innstat
;;
reload|force-reload)
if [ -f /var/lock/subsys/inn ]; then
fi
;;
restart)
- $0 stop
+ stop
sleep 2
- $0 start
+ start
;;
*)
msg_usage "$0 {start|stop|restart|reload|force-reload|status}"