From 81666da7866550b29ae73d16f468890f0a69890e Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat Date: Sun, 6 Dec 2009 22:03:11 +0100 Subject: [PATCH] n/ddclient: Fixed the rc script. --- n/ddclient/rc.ddclient | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/n/ddclient/rc.ddclient b/n/ddclient/rc.ddclient index e89db94e..4d138e92 100644 --- a/n/ddclient/rc.ddclient +++ b/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