Bug#534974: daemon does not register the running/active status of the ddclient pid

2009-06-30 Thread Savvas Radevic
 Perhaps that option should better be passed on the command line from the init
 script.

 True, it looks like an option that should be taken care of the init
 script. Thanks again!

Here's the diff patch for debian/ddclient.init ( aka /etc/init.d/ddclient ).
--- ddclient-3.8.0/debian/ddclient.init~	2009-02-18 23:25:24.0 +0100
+++ ddclient-3.8.0/debian/ddclient.init	2009-06-30 10:53:52.0 +0200
@@ -29,8 +29,8 @@
   . /etc/default/ddclient
 fi
 
-OPTIONS=-daemon $daemon_interval -syslog
 PIDFILE=/var/run/$NAME.pid
+OPTIONS=-daemon $daemon_interval -syslog -pid $PIDFILE
 
 # Load the VERBOSE setting and other rcS variables
 . /lib/init/vars.sh


Bug#534974: daemon does not register the running/active status of the ddclient pid

2009-06-30 Thread Torsten Landschoff
On Tue, Jun 30, 2009 at 11:08:14AM +0200, Savvas Radevic wrote:
  True, it looks like an option that should be taken care of the init
  script. Thanks again!
 
 Here's the diff patch for debian/ddclient.init ( aka /etc/init.d/ddclient ).

Sorry, you are late ;-)

I already added a patch looking quite the same yesterday. Have a look at

http://bzr.debian.org/loggerhead/users/torsten/ddclient/revision/21?

Greetings, Torsten



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534974: daemon does not register the running/active status of the ddclient pid

2009-06-30 Thread Savvas Radevic
 I already added a patch looking quite the same yesterday. Have a look at

 http://bzr.debian.org/loggerhead/users/torsten/ddclient/revision/21?

Cool!



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534974: daemon does not register the running/active status of the ddclient pid

2009-06-28 Thread Savvas Radevic
Package: ddclient
Version: 3.8.0-3
Severity: important

I've just tried to run the daemon with the configuration provided from 
dnsomatic:
https://www.dnsomatic.com/wiki/ddclient

When I try to stop the daemon it is still running:

$ sudo /etc/init.d/ddclient start
$ ps aux | grep -i ddcli
testuser   16424  1.0  0.6  68456 13860 pts/4S+   19:10   0:01 
/usr/bin/python /usr/bin/reportbug -B debian -V 3.8.0-3 ddclient
root 16435  0.0  0.3  36868  6276 pts/2S19:11   0:00 ddclient - 
sleeping for 300 seconds
testuser   16437  0.0  0.0   7524   972 pts/2S+   19:11   0:00 grep -i ddcli
$ sudo /etc/init.d/ddclient status
Status of Dynamic DNS service update utility: ddclient is not running.
$ sudo /etc/init.d/ddclient stop
$ ps aux | grep -i ddcli
testuser   16424  0.9  0.6  68456 13860 pts/4S+   19:10   0:01 
/usr/bin/python /usr/bin/reportbug -B debian -V 3.8.0-3 ddclient
root 16435  0.0  0.3  36868  6276 pts/2S19:11   0:00 ddclient - 
sleeping for 290 seconds
testuser   16446  0.0  0.0   7524   968 pts/2R+   19:12   0:00 grep -i ddcli

-- System Information:
Debian Release: 5.0
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-13-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534974: daemon does not register the running/active status of the ddclient pid

2009-06-28 Thread Torsten Landschoff
Hi Savvas,

Thanks for your report.

On Sun, Jun 28, 2009 at 07:16:36PM +0200, Savvas Radevic wrote:
 I've just tried to run the daemon with the configuration provided from 
 dnsomatic:
 https://www.dnsomatic.com/wiki/ddclient
 
 When I try to stop the daemon it is still running:
 
 $ sudo /etc/init.d/ddclient start
 $ ps aux | grep -i ddcli
 testuser   16424  1.0  0.6  68456 13860 pts/4S+   19:10   0:01 
 /usr/bin/python /usr/bin/reportbug -B debian -V 3.8.0-3 ddclient
 root 16435  0.0  0.3  36868  6276 pts/2S19:11   0:00 ddclient - 
 sleeping for 300 seconds
 testuser   16437  0.0  0.0   7524   972 pts/2S+   19:11   0:00 grep -i 
 ddcli
 $ sudo /etc/init.d/ddclient status
 Status of Dynamic DNS service update utility: ddclient is not running.

Okay, that would be because the config file does not specify the pid=...
option to set the file where the pid is recorded.

Just add pid=/var/run/ddclient.pid to the config file and it should work.
Perhaps that option should better be passed on the command line from the init
script.

Greetings, Torsten



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534974: daemon does not register the running/active status of the ddclient pid

2009-06-28 Thread Savvas Radevic
 Okay, that would be because the config file does not specify the pid=...
 option to set the file where the pid is recorded.

 Just add pid=/var/run/ddclient.pid to the config file and it should work.

$ sudo /etc/init.d/ddclient start
$ sudo /etc/init.d/ddclient status
Status of Dynamic DNS service update utility: ddclient is running.

Thank you, works like a charm! :)


 Perhaps that option should better be passed on the command line from the init
 script.

True, it looks like an option that should be taken care of the init
script. Thanks again!



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org