LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ubuntu start-stop-daemon problem (http://www.linuxquestions.org/questions/linux-software-2/ubuntu-start-stop-daemon-problem-886043/)

CollieJim 06-13-2011 08:52 AM

Ubuntu start-stop-daemon problem
 
I have been using Gentoo, and the following command gives me the status of a program I have running as a daemon:
Code:

        start-stop-daemon --signal SIGUSR1 --quiet  --pidfile $PIDFILE
I have switched to Kubuntu for a while to check it out. Unfortunately that command fails with Ubuntu's version, telling me that --start or --stop is required, and it does not like SIGUSR1. I suppose Gentoo's version could be the same now as I have not updated for a while.

How do I send a command besides start or stop to a daemon?

TIA
Jim

BTW The reason for the switch is that I could not get the video and networking on my Toshiba Satellite working, but Ubuntu handles then out of the box (disc?)

CollieJim 06-14-2011 08:44 AM

To answer my own question,

add --stop to the command, and
change SIGUSR1 to USR1.

It's rather poor, I think, to require --stop when the intent is *not* to terminate the process.


All times are GMT -5. The time now is 11:44 AM.