Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slackbuilds/n/dnssec-trigger/rc.dnssec-triggerd

32 lines
550 B

#!/bin/sh
PIDFILE=/var/run/dnssec-trigger.pid
case "$1" in
start)
/usr/sbin/dnssec-triggerd
;;
stop)
/usr/sbin/dnssec-trigger-control stop
;;
restart)
/usr/sbin/dnssec-trigger-control stop
sleep 1
/usr/sbin/dnssec-triggerd start
;;
status)
if [ -f $PIDFILE ] && kill -0 `cat $PIDFILE` 2>/dev/null ; then
echo "dnssec-triggerd is running."
else
echo "dnssec-triggerd is not running."
fi
;;
*)
echo "Usage: `basename $0` {start|stop|restart|status}" 1>&2
exit 1
;;
esac