The tag has no usage guidance.

learn more… | top users | synonyms

6
votes
3answers
5k views

is there a difference between a daemon and a service?

Is there a difference between a daemon or a service? or are they both basically an application that is resident in memory, and is bound to a specific port and listens/responds to requests?
6
votes
2answers
7k views

Can start-stop-daemon use environmental variables?

I need to daemonize a Windows app running in Wine, and create a pid in /var/run. Since it requires an X11 session to run, I need to make sure the $DISPLAY variable is set in the running user's ...
3
votes
5answers
273 views

Is there a simple way to daemon-ify a simple task?

I ssh into a server than start a job (for instance rsync), then I just want to be able to log out from the server and let the job run its course. But if I just do rsync ... & I think it's still ...
1
vote
5answers
762 views

Writing a Linux Service

I would like to write a Linux service using PERL, but don't know how to do. (I know perl) I have a MySQL database, and need to check it for new records, so I can process them. The service should ...
2
votes
1answer
753 views

Creating Daemons in Linux… how should the file permissions be?

I am setting up a few PHP Gearman Daemons running on PEAR System_Daemon. I need them to be able to write to the following locations... /var/run/{APPNAME}.pid /etc/init.d/{APPNAME} /gearman/log/{...
2
votes
2answers
2k views

Linux - Run a daemon as 'nobody'

I have a daemon sitting in my root directory that currently is being run as root. However, since this program can read the file system, this is clearly a security problem. How can I run it as nobody ...
2
votes
2answers
301 views

daemon running for several hours, and dies

After restart server, this is running: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19653 lighttpd 16 0 67584 39m 16m R 21.3 15.3 0:17.60 php-cgi 8006 mysql 15 0 ...
5
votes
5answers
175 views

Starting a mysql server in my ${HOME}?

I'm not root on my server (linux) and this server doesn't currently run a mysql server as a daemon. Can I start a mysql daemon that would only work for my account and where the data/files would be ...
38
votes
7answers
66k views

How to automatically start supervisord on Linux (Ubuntu)

Supervisord does not come with an init script or does not indicate how to get it started automatically, ie. after a reboot. I've tried some user-contributed /etc/init.d scripts, but they all fail. ...
0
votes
3answers
176 views

An easy way to see what in /etc/init.d/* is running?

I left my laptop cable at home, and I'm running on battery. I'm using Ubuntu Linux 9.10. I know about powertop and I'm using that. It told me that a few things I'd installed (postgres, mysql, etc) ...
0
votes
2answers
192 views

“Must have” tools for managing arbitrary *nix daemons and their activities [closed]

What tools do you advise for managing running daemons? This includes: Load monitoring: renice a daemon when it slows down the whole server Keeping alive: restart it when it's not functional. Maybe, ...
1
vote
2answers
3k views

How do I force output to a file when there is no TTY allocated?

I have an init script that does something like this in the start() function: runuser -s /bin/bash - prog -c "nohup php /foo/bar.php 2>&1 >> /var/log/bar.log &" When I SSH into the ...
4
votes
1answer
378 views

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.
4
votes
3answers
2k views

Scheduling tasks with Django

I have a Django website, and I want to have a certain piece of Python code run at regular intervals. What would be a good way to do that? I know I can cron, but I would prefer the solution to be ...
3
votes
6answers
10k views

Running JBoss-5.1.0.GA as a service / daemon on Red Hat?

I am using JBoss 5.1.0 GA on Red Hat (Amazon ECS)... Am trying to set it up so JBoss will run as a service / daemon (right now it only starts up when I manually SSH and invoke sh $JBOSS_HOME/bin/run....
5
votes
4answers
11k views

How do I automatically restart a process on server reboot/process exit?

On my Ubuntu server I use God to monitor some Ruby processes/scripts, including a Queue system. God automatically checks when one of my processes exists and restarts it. It also keeps track of memory ...
33
votes
8answers
62k views

Disable a service from starting at all runlevels?

I have a service foo which currently starts at runlevel 3 and above. How can I stop it from doing so, without using update-rc.d foo stop 3 ., which (if I understand it correctly) would turn off the ...
13
votes
7answers
26k views

Debian: Too many open files

I have long running process at Debian. At some point in throw an error "Too many open files". ulimit -a shows open files (-n) 1024 I wish to increase number of open ...
3
votes
7answers
2k views

Shell script to execute something when one of the daemon dies?

I just had to build two instances of daemon running on different ports. let's say they both serve critical missions for some applications. How can I do some automatic task (eg. shell script) ...
5
votes
6answers
3k views

How to daemonize servers on Ubuntu?

I've got a couple of servers on my Ubuntu that need to be restart-proof daemonized. How can I do that with generic init first process? Should I swap to upstart or some other replacement?
0
votes
1answer
3k views

emond process running at 100%

I have a couple of XServes running 10.5.6 and both of them have emond running at 100%. If the servers are rebooted emond will not immediately consume 100%, but it will eventually. I haven't seen ...
2
votes
3answers
2k views

How do I create an interactive daemon login?

I run a service on a debian/linux machine which runs at boot with a 'screen' session I can always attach to. I would like to create a username which I can run this service as. At the moment I use a '...