diff options
Diffstat (limited to 'extra/knock/knockd')
-rw-r--r-- | extra/knock/knockd | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/knock/knockd b/extra/knock/knockd new file mode 100644 index 000000000..413e77a70 --- /dev/null +++ b/extra/knock/knockd @@ -0,0 +1,37 @@ +#!/bin/sh +. /etc/sysconfig/rc +. $rc_functions + +pidfile=/var/run/knockd.pid + +case "$1" in + start) + boot_mesg "Starting KNOCKD Server..." + loadproc /usr/sbin/knockd -d;; + + stop) + boot_mesg "Stopping KNOCKD Server..." + killproc /usr/sbin/knockd + ;; + + reload) + boot_mesg "Reloading KNOCKD Server..." + reloadproc /usr/sbin/knockd + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/knockd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + |