0
votes
4answers
303 views

Daemon process exiting when shell closes

I have a script which starts a daemon process and then sleeps for 20 seconds. If I run the script on SLES11 SP1 or RHEL6 then after the script exits the process is still running. If I run the script ...
1
vote
1answer
119 views

Bash - Program is writing directly to terminal

Valve's dedicated server for the Source Engine (srcds_run) on Linux writes directly to the terminal, not stdout. I want to run it as an /etc/init.d daemon on Debian 6, and I'd like to redirect/capture ...
0
votes
2answers
1k views

Creating gid/uid for your custom created daemon?

Assume you have created a daemon (custom written) and want to create new uid/gid for this program. Are there any standard practices? e.g. Should the uid and gid be the same? Should the id start ...
1
vote
1answer
1k views

Running python script as a daemon in debian

I'm trying to run my python script as a service... But I'm getting this error when I call sudo update-rc.d mylistener start: Use of uninitialized value $ARGV[1] in pattern match (m//) at ...
1
vote
1answer
137 views

Considerations for building SysV or Upstart compatible Bash scripts

I've just knocked out a quick script for keeping a slave web server in sync with a master using rsync. (https://github.com/simonjgreen/liveFolderSync/blob/master/liveFolderSync.sh) I'd like to make ...
5
votes
1answer
4k views

Launching a PHP daemon from an LSB init script w/ start-stop-daemon

I'm writing an lsb init script (admittedly something I've never done from scratch) that launches a php script that daemonizes itself. The php script starts off like so: #!/usr/bin/env php <?php ...