Questions tagged [daemon]

A daemon is a process or program that runs in the background (i.e. requiring no user interaction).

Daemon processes are background programs found in Linux/Unix systems that are typically started during the booting sequence. They perform special management and utility functions, which may either perform consistent tasks like polling (i.e. the syslogd daemon) or wait for a command to do something (like handling setup of new SSH connections via the sshd daemon).

They can be initiated after start time using the systemctl command:

$systemctl start daemon.service

Some commonly used daemons include:

  • httpd (HTTP web server management)
  • mountd (Mounting of file systems)
  • nfsd (Sharing of network files)
  • routed (Management of routing tables)
  • ntpd (Network time protocol administering)
  • dhcpd (Dynamic host configuration protocol administering)
2634 questions
1
vote
1 answer

Can't execute Ruby Script while running Python Celery as Daemon

I have Python Celery running as a daemon with Celerybeat picking up tasks on an Amazon Linux box. When I run my test task, it completes without incident. @app.task def test(): print("Testing 123") return 0 However, when I try to fire off a…
kellanburket
  • 12,250
  • 3
  • 46
  • 73
1
vote
1 answer

Using daemontools with a Python script that spawns subprocesses

I am trying to set up daemontools with a large python program that spawns various subprocesses, and I'm having issues where the subprocesses are not spawning correctly. The subprocess just appears as a zombified process when launched via…
sg90
  • 39
  • 4
1
vote
1 answer

Supervisorctl does not auto-restart daemon queue worker when hanging

I have supervisorctl managing some daemon queue workers with this configuration : [program:jobdownloader] process_name=%(program_name)s_%(process_num)03d command=php /var/www/microservices/ppsatoms/artisan queue:work ppsjobdownloader --daemon…
130nrd
  • 180
  • 1
  • 12
1
vote
1 answer

Docker containers as Linux services?

I just created a secure Docker Registry and ran it on a remote VM (using docker run ...). I then ran docker ps and saw that it is in fact running. I exited the machine and then SSHed back in. Again, I ran docker ps and verified it "survived" me…
smeeb
  • 27,777
  • 57
  • 250
  • 447
1
vote
0 answers

Detecting when pc is turning off from java daemon

I have developed a Java daemon and I want to create a kind of listener which will be called when the PC is turning off in way to check some Application info. If you have some info about it, let me know. Is it possible to control the shutting down…
1
vote
1 answer

screenshot-grabbing email tool

I have a web site with various graphs embedded in it that are generated externally. Occasionally those graphs will fail to generate and I would like to catch that when it happens. These graphs are embedded in multiple pages and I would rather not…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
1
vote
3 answers

Looping or Recursive PHP Function on time delay - Need Event Loop? Forking?

I have a PHP function that needs to be executed ~10 seconds after certain events. The Function can in turn create a new instance of the event, which would need to trigger the function again ~10 seconds later. Often the function won't create a new…
Charles
  • 853
  • 3
  • 8
  • 21
1
vote
1 answer

Emacs daemon is automatically killed when I close gui client in fullscreen mode. (Mac Yosemite)

Here's my .zshrc configuration. export ALTERNATE_EDITOR="" alias e="emacsclient -t" # emacs terminal alias ec="emacsclient -c -n" # gui emacsclient When I start a new first emacsclient, emacs daemon starts automatically with the configuration…
cloudrain21
  • 649
  • 5
  • 17
1
vote
0 answers

When I transform my c program in a daemon rsh stay blocked in ubuntu system manager

I have a c program that launched by system call rsh in this way system(" rsh -l $DTT $CTT './script.sh' "); $DTT and $CTT are enviornment variable where i load in them the user and host name strings when the c program is normal, the rsh work…
Alex
  • 559
  • 1
  • 4
  • 6
1
vote
1 answer

Sending back the output of a daemon through a socket

I'm creating a Twitter client, and I need to handle the tweets coming from each streaming processes (started with Symfony's Process component). I have a websocket server running in the background which works perfectly. My problem is that I don't…
Isty001
  • 144
  • 1
  • 11
1
vote
1 answer

Dynamic daemon process starting/stopping in PHP

I'd like to start a daemon process on a user action (when they login, their Twitter timeline is being streamed), but I have no idea where to start. I understand how to create a single daemon worker to manually start and run in the background, but…
Isty001
  • 144
  • 1
  • 11
1
vote
1 answer

Daemons-Rails: scaling up to multiple workers

So, I've been given a code base which uses daemons, daemons-rails and delayed jobs to trigger a number of *_ctl files in /lib/daemons/ but here's the problem: If two people do an action which starts the daemons doing some heavy lifting then…
AJFaraday
  • 2,411
  • 1
  • 16
  • 39
1
vote
3 answers

How can i know if the Daemon was stopped from a different thread

My Daemon create and runs a function on a different thread this function runs many other functions. I want to check before each function if the Daemon was closed and if not then i will perform the function. How can i know if the Daemon was stopped?
Adi
  • 2,074
  • 22
  • 26
1
vote
1 answer

Daemon child can't execute library

I am writing a Linux daemon to execute my code. My code makes a call to a third party library. If I execute my code from the parent then everything runs fine, but if I execute my code directly from a child the call to the third party library never…
Fred
  • 1,054
  • 1
  • 12
  • 32
1
vote
1 answer

Inter application communication - which approach to take?

I'm making a little application which will control a sort of a hardware indicator thingie (usable as a volume indicator, processor load meter and such). My goal is to make the device accessible to other applications as easily as possible. What would…
daqq
  • 83
  • 1
  • 5