Browse Source

n/ddclient: Fixed the rc script.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
81666da786
  1. 6
      n/ddclient/rc.ddclient

6
n/ddclient/rc.ddclient

@ -1,13 +1,14 @@
#!/bin/bash
[ -f /etc/ddclient.conf ] || exit 0
[ -f /etc/ddclient/ddclient.conf ] || exit 0
start() {
mkdir -p /var/cache/ddclient
ddclient -pid /var/run/ddclient.pid
}
stop() {
[ -f /var/run/ddclient.pid] && kill $(< /var/run/ddclient.pid)
[ -f /var/run/ddclient.pid ] && kill $(< /var/run/ddclient.pid)
}
restart() {
@ -32,6 +33,7 @@ restart)
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0

Loading…
Cancel
Save