-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Dickinson wrote: > I discovered that I was misleading in my bug title and description. I > had forgotten _why_ I switched the pidfile parameter. > > Try doing /etc/init.d/gkrellmd stop and you will notice that > start-stop-daemon fails with the message that the pid does not exist > (not the file the actual process). > > If you ps aux|grep gkrellmd, gkrellmd is still alive, not terminated. > > This is because --pidfile to start-stop-daemon gets the process of the > pre-daemon process, which terminates after the exec. The daemon has a > different pid than the startup process and that is why you need to let > the daemon create the pidfile not start-stop-daemon. > > As I said, my init script is right, yours doesn't work. It creates the > pidfile, you're right about that, but it's the wrong pid. > > Regards, > > Daniel >
[EMAIL PROTECTED]:~$ sudo /etc/init.d/gkrellmd start Starting gkrellmd: gkrellmd. [EMAIL PROTECTED]:~$ ps aux |grep gkrellmd gkrellmd 8031 10.8 0.0 11372 1512 ? S 21:30 0:00 /usr/bin/gkrellmd ghostbar 8044 0.0 0.0 3060 716 pts/1 S+ 21:31 0:00 grep gkrellmd [EMAIL PROTECTED]:~$ sudo /etc/init.d/gkrellmd stop Stopping gkrellmd: gkrellmd. [EMAIL PROTECTED]:~$ ps aux |grep gkrellmd ghostbar 8057 0.0 0.0 3060 716 pts/1 S+ 21:31 0:00 grep gkrellmd This is my init file: 8<------------- case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /var/run/gkrellmd.pid \ --exec $DAEMON -m -b -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid echo "$NAME." ;; 8<------------- Regards. - -- Jose Luis Rivas. San Cristóbal, Venezuela. PGP: 0xCACAB118 http://ghostbar.ath.cx/{about,acerca} - http://debian.org.ve `ghostbar' @ irc.debian.org/#debian-ve,#debian-devel-es -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFINiXpOKCtW8rKsRgRAvD4AJ9r3gPR7Ohb3sfSHMpFwx/6mTTTLQCeMsAx lN43uMUHseUTZ2lZbGY7G9A= =05aK -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]