On linux an unix-like systems is demon the designation of processes running in the background and providing certain services. Direct user intaractions with demons are not intended.
Questions tagged [daemon]
286 questions
8
votes
2 answers
What's the purpose of kslowd?
I'm running Ubuntu 10.10:
uname -a
Linux mt-xps 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux
When I run top, I occasionally see a "kslowd000" or similar process popping up in the top CPU usage list. I've tried…

Martin T.
- 182
- 1
- 5
8
votes
3 answers
Ways to set umask on Ubuntu for daemon processes
I have an http daemon server process (yaws) that I would like to have server write any new files with a umask of 002, so that another user in the same group can modify, move, or delete files created by the daemon process. This is on Ubuntu…

mp3foley
- 618
- 1
- 5
- 10
8
votes
3 answers
How can I run supervisord without using root?
I seem to be having trouble figuring out why supervisord won't run as a non-root user. If I start it with the user set to jason (pid 1000), I get the following in the log file:
2010-05-24 08:53:32,143 CRIT Set uid to user 1000
2010-05-24…

Jason Baker
- 1,229
- 6
- 20
- 26
7
votes
1 answer
Running Jenkins standalone vs within Tomcat
What things should be considered when deciding between running Jenkins standalone or within Tomcat? We would prefer to not have to use Tomcat because there's no other applications on this server machine that would need Tomcat, so we would be setting…

user779159
- 395
- 1
- 5
- 10
7
votes
2 answers
Start Sinatra app in the background with stdout and stderr redirected (append) to a file
I have a Sinatra app which I run on my local machine using ruby app.rb. While deploying it on a remote machine via ssh, how do I run it in background and redirect stdout and stderr to a log file?
On a restart, I want to preserve the previous logs so…

letronje
- 429
- 1
- 6
- 17
7
votes
4 answers
How to tell if an ssh ControlMaster connection is in use
I'd like to use ssh's ControlMaster feature to share connections for speed increases. I'm trying to script it so that I can start/restart/stop a number of connections to different hosts.
How can I determine whether any of these connections are in…

David Fraser
- 406
- 6
- 12
7
votes
4 answers
No coredumps for daemons started at boot by init.d on Ubuntu
How can I get daemons started by init.d at boot to coredump on Ubuntu? This is what I have done so far...
echo "ulimit -c unlimited" >> /etc/profile
mkdir /corefiles/
chmod 777 /corefiles/
echo "kernel.core_pattern=/corefiles/core.%e.%u.%t" >>…

user16517
- 233
- 1
- 4
- 9
6
votes
1 answer
runit does not kill process on sv stop or sv reload
i am running a headless selenium process along a jenkins server on an AMI linux box, all managed by runit.
the problem is that issuing "sv stop selenium" or "sv reload selenium" do not term or kill the old instance along its child processes, but…

Andreas Wagner
- 133
- 2
- 8
6
votes
3 answers
How to start Mongo daemon with auth support
I want to start the MongoDB daemon with auth support using the Mongo init script:
sudo /etc/init.d/mongod start
I have also added db users to the database to authenticate. I'm working with two files: /etc/init.d/mongod (for init) and…

Scott
- 163
- 1
- 1
- 4
6
votes
1 answer
nohup vs screen vs ? for manually starting daemon processes
When I need to start a background process on a low-importance server, I tend to use nohup:
nohup ./server.sh &
Most colleagues seem to prefer screen:
screen -D -R mydaemon
./mydaemon.sh
^A ^D
Are there any major differences in the effect of these…

Steve Bennett
- 5,750
- 12
- 47
- 59
6
votes
1 answer
Equivalent for the "pid file" stanza in newer versions of upstart
I'd like to be able to use upstart to manage daemons where I don't have complete control over the forking behaviour. The "pid" stanza is removed as of version 0.3.9, so I can't point it at a pid file. What is the correct way to go about this? Do I…

mispy
- 171
- 1
- 3
6
votes
1 answer
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

EvanK
- 247
- 3
- 7
- 13
6
votes
3 answers
How can I drop privileges and still clean up my pid file in /var/run?
I have a daemon called foo. My init script /etc/init.d/foo starts the foo daemon and stores its pidfile in /var/run/foo.pid, which seems to be the standard place. Because /etc/init.d/foo must be run as root, it has no trouble creating and deleting…

Eli Courtwright
- 449
- 1
- 5
- 14
5
votes
1 answer
Opera unite as a daemon
Is it possible to run an opera unite server without the browser?
Say for instance I want to use my always-on FreeBSD server, which doesn't run X.

Steinbitglis
- 183
- 1
- 8
5
votes
2 answers
How to check syslog.d is running
My syslog is running correctly but out of curiosity how to check that syslog daemon is running. Is there anyway I could check the status like apache
root@server1:/etc# /etc/init.d/apache2 status
Apache2 is running (pid 12894).
I'm running Debian…

sg552
- 409
- 3
- 5
- 11