Message boards : Server programs : Does someone know how to start or stop a Daemon?
Message board moderation
Author | Message |
---|---|
Send message Joined: 21 Jun 08 Posts: 27 |
Hi, everyone Daemons including feeder,sample_work_generator are started when you run the bin/start script, and killed when you run bin/stop. Does someone know how to start/stop one Daemon,not all Daemons? Or we could only start/stop all? |
Send message Joined: 3 Jun 08 Posts: 40 |
Hi, everyone I think the best way is to remove the daemon you want to stop from config.xml. ./bin/start will check config.xml first. |
Send message Joined: 23 Jul 08 Posts: 4 |
While changing the config.xml file does work, if you want a quick fix you could just run sudo ps -a | grep $DAEMON_NAME and then sudo kill PROCESS_ID. To start a daemon, if it is in the bin folder, then you could, for example, run sudo ./feeder -d 3 from the bin folder. |
Send message Joined: 27 Jun 06 Posts: 305 |
Linux has a command "killall" that handles the ps/grep/kill stuff internally |
Send message Joined: 21 Jun 08 Posts: 27 |
hi, I have tested or used kill/killall to kill one deamon. But in a moment, the deamon will automatically restart(using bin/status, the status of the daemon is running). The command kill or killall is different from bin/stop, because after using bin/stop, the deamon will not restart until you use bin/start. Could someone tell why the daemon will automatically restart after using kill or killall? |
Send message Joined: 19 Jan 07 Posts: 1179 |
Could someone tell why the daemon will automatically restart after using kill or killall? Because it's still enabled in config.xml. Disable it there first. |
Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.