From 5b1b01086284b18a85e795d2ba18ec8d3d21a7e7 Mon Sep 17 00:00:00 2001 From: tnut Date: Sat, 6 Nov 2010 18:59:44 +0100 Subject: knock, ajoute du service et man pages au bon endroit --- extra/knock/knockd | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 extra/knock/knockd (limited to 'extra/knock/knockd') 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 + -- cgit v1.2.3-70-g09d2