forked from ports/contrib
28 lines
320 B
Plaintext
28 lines
320 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
#
|
||
|
# /etc/rc.d/ddclient Start or stop dynamic DNS service
|
||
|
#
|
||
|
|
||
|
export COLUMNS=9999
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
/usr/sbin/ddclient -syslog -daemon 0
|
||
|
;;
|
||
|
stop)
|
||
|
killall -q ddclient
|
||
|
;;
|
||
|
restart)
|
||
|
$0 stop
|
||
|
$0 start
|
||
|
;;
|
||
|
*)
|
||
|
echo "Usage: ddclient start|stop|restart"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|
||
|
|
||
|
#End of file
|