include $(top_srcdir)/Makefile-head.am
-initddir=$(sysconfdir)/rc.d/init.d
+initddir=$(sysconfdir)/init.d
initd_SCRIPTS=udpgate
EXTRA_DIST+=udpgate.init
CLEANFILES+=udpgate
# chkconfig: 2345 98 02
# description: UDP packets gateway
-# Source function library.
-. /etc/rc.d/init.d/functions
-
# Source our configuration file for these variables.
PORT=9201
LOCATION=/usr/bin/udpgate
start() {
echo -n $"Starting $prog: "
- daemon $LOCATION --start --port=$PORT
+ $LOCATION --start --port=$PORT
RETVAL=$?
echo
return $RETVAL
start)
start
;;
-
stop)
stop
;;
-
status)
- status udpgate
;;
restart)
stop
start
;;
condrestart)
- if test "x`pidof udpgate`" != x; then
- stop
- start
- fi
+ stop
+ start
;;
*)
- echo $"Usage: $0 {start|stop|restart|condrestart|status}"
+ echo $"Usage: $0 {start|stop|restart}"
exit 1
esac