2 # Startup script for udpgate
4 # chkconfig: 2345 98 02
5 # description: UDP packets gateway
7 # Source function library.
8 . /etc/rc.d/init.d/functions
10 # Source our configuration file for these variables.
12 LOCATION=/usr/bin/udpgate
13 if [ -f /etc/sysconfig/udpgate ] ; then
14 . /etc/sysconfig/udpgate
20 echo -n $"Starting $prog: "
21 daemon $LOCATION --start --port=$PORT
28 echo -n $"Stopping $prog: "
52 if test "x`pidof udpgate`" != x; then
59 echo $"Usage: $0 {start|stop|restart|condrestart|status}"