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
1
vote
2 answers
How to stop pptpd even when there are active vpn client connections?
After issued command to stop pptpd, the pptpd won't stop until all the VPN client has disconnected. The following code shows pptpd is still running after issuing the stop command.
ubuntu@ip-10-138-31-87:~$ sudo /etc/init.d/pptpd stop
Stopping PPTP:…

Michael Z
- 121
- 1
- 5
1
vote
2 answers
How to Start Linux Daemon program at boot up
I am confused on how to start my Daemon C program at boot-up. The program runs as a Daemon OK when I satrt it from command shell, but now I want it to start up every time at boot-up. I have searched for the last week on how to do this and there many…
user328429
1
vote
1 answer
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 /usr/sbin/update-rc.d line 192.
update-rc.d: error: expected…

ingh.am
- 273
- 3
- 15
1
vote
2 answers
Ensure that a via ftp uploaded file is complete
I want to write a script that runs on a server and looks for a configuration file every x seconds and starts or kills other scripts depending on the data in the configuration file. My question now is: When somebody uploads this configuration file…

stofl
- 193
- 6
1
vote
2 answers
Automatically restart simple Linux daemon (polipo) when it dies
I have a polipo proxy running on Ubuntu. It's set to start automatically on boot, but occasionally it just dies. What's the simplest way to have it automatically restarted whenever it exits unexpectedly?

EMP
- 5,172
- 10
- 37
- 33
1
vote
3 answers
Server-side antivirus
We're looking for some sort of antivirus for a server running Linux and can't seem to find a decent one that runs server-side. And by serverside I mean that it could run as a daemon instead of having to start up and execute for every file that we…

freeall
- 194
- 1
- 9
1
vote
1 answer
Does STDERR go to syslog in an LSB init script?
I am running a Debian system and have an init script in /etc/init.d/ that starts a daemon using start-stop-daemon:
start-stop-daemon --start --quiet --pidfile /tmp/myproject.pid --exec /usr/bin/somebin || return 2
If /usr/bin/somebin writes to…

user35042
- 2,681
- 12
- 34
- 60
1
vote
1 answer
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 this run on boot and be controllable via the usual…

SimonJGreen
- 3,205
- 5
- 33
- 55
1
vote
1 answer
Running Celery as a daemon
I'm testing Celery with RabbitMQ on Ubuntu11.04 on a python project that is not a django project.
I have my celeryconfig.py and my test.py file in /mypath/myproject/.
My /etc/default/celeryd looks like this:
# Where to chdir at start.
CELERYD_CHDIR=…

itgorilla
- 193
- 7
1
vote
2 answers
init.d service died
Adapting some code from a linux forum, I've added a service script to /etc/init.d on my ubuntu natty server to start/stop/restart node.js
It literally was working the first day I made it, but then today, after viewing my website this morning, the…

jerluc
- 111
- 2
1
vote
1 answer
On Mac upon reboot, how to make a new daemon start and an old daemon not start?
We have a daemon running on a Mac server (10.6.6).
We want to install another newer version of the daemon along side it but not start it.
Then at a specific time, we want to reboot the server and have the old daemon not start and the new one…

Edward Tanguay
- 1,209
- 4
- 22
- 31
1
vote
2 answers
Updated MySQL: MySQL Daemon has failed to start
Just updated my MySQL on CentOS when I did yum update. My website threw some MySQL errors and I found out that MySQL wasn't running:
# /etc/init.d/mysqld start
MySQL Daemon failed to start.
Starting MySQL: [FAILED]
I receive this error:
2002:…

Gio Borje
- 149
- 3
- 10
1
vote
2 answers
Proper way to manage Daemons, Debian/Ubuntu Linux
What is the best way? Or at least... an easily managed one?
I am routinely creating shell and python scripts that need to always be running in the background.
Any recommendations on packages that simplify this? In the past I would stick a shell…

mvrak
- 113
- 4
1
vote
1 answer
Automatic printing of files written in specific directory
I have a legacy application that for printing purposes, sends its output to a file in different directories. What's written into directory X is printed in printer X; what's written into directory Y is printed in printer Y; and what's written into…

Rolando
- 53
- 1
- 1
- 4
1
vote
1 answer
What's better for this particular task: a daemon or a CRON job with a simple program?
I have a program that copies files from a network drive to a specific location per user. It needs to do this every 12 hours and it needs to start when the system (redhat linux) starts.
I was thinking about converting the program to a daemon and have…

jessica
- 155
- 1
- 6