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

Do you need to restart the solr daemon after logrotate?

This is a follow-up to an answer to: How to start Solr automatically? I have solr running as a daemon as suggested above. But I realize it has used up more than 250GB for the log. I'm considering using logrotate to regulate the log size. In the…
Joe
  • 65
  • 2
  • 9
1
vote
1 answer

twisted python daemonization and port bindings

I am using the following script from the Twisted tutorial (with slight modification): from twisted.application import internet, service from twisted.internet import reactor, protocol, defer from twisted.protocols import basic from twisted.web import…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
1
vote
2 answers

Reloading a Class

I have a PHP daemon script running on the command line that can be connected to via telnet etc and be fed commands. What it does with the command is based on what modules are loaded, which is currently done at the start. (psuedocode below for…
Doug
  • 3,312
  • 1
  • 24
  • 31
1
vote
1 answer

Run a PHP script on server start

I'm writing a PHP script (OK, it's a daemon worker) that I'd like to run in the background, and it follows the following pseudo-code: do { // stuff sleep(60*30); // 30 minutes } while(1); Now, how can I set this baby up to run automatically…
FloatingRock
  • 6,741
  • 6
  • 42
  • 75
1
vote
1 answer

Daemon process not logging into custom log files

I am creating a daemon process which monitors loads on database. The process is created using the reference of code at http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ What I am trying to do is: Call the createDaemon()…
Priyesh
  • 415
  • 3
  • 11
1
vote
1 answer

Daemon can still print to stdout?

I'm writing a daemon in Ruby 1.8.7 (i.e., no Process.daemon) using a double-fork + setsid: exit if fork Process.setsid exit if fork After all of this, I still, for some reason, seem to be able to print out to stdout. From everything I've read, the…
bacchuswng
  • 335
  • 2
  • 9
1
vote
3 answers

php and error "start-stop-daemon: unable to stat"

I have a daemon that I have created using php. I want to have this called by initscripts and have it start on boot, which works fine. However, when I try to kill the process using sudo service crystal_send stop it does not kill the process. And…
dostrander
  • 737
  • 5
  • 19
1
vote
2 answers

Daemon monitoring / logging on linux (application counters)

I'm writing a daemon that will continuously run in background and do it's thing. I would like to monitor the performance and various other variables. This will include things like web request latency, errors, number of processed items and so on. The…
lacop
  • 2,024
  • 4
  • 22
  • 36
1
vote
1 answer

How to restart VOLD daemon or send it commands?

This is the latest VOLD daemon from Android 4.3: https://android.googlesource.com/platform/system/vold/+/master It uses a new unified /fstab. configuration file. Once I've modified the file in the rootfs ramdisk, I need to restart VOLD or…
Monstieur
  • 7,992
  • 10
  • 51
  • 77
1
vote
2 answers

What and how much overheads happen when I use a Reference class?

I saw there is a daemon thread running whenever we create a referenced object using any Reference class like WeakReference, FinalReference, SoftReference, PhantomReference, Referemce And if we have hierarchal thread structure then at each…
DKSRathore
  • 3,043
  • 6
  • 27
  • 36
1
vote
0 answers

Start python-code as a Daemon with daemon-tools from Bernstein

I'm trying to start a daemon with daemon-tools from bernstein. With normaly shell it works very well but how can i start a simply python code as daemon with daemon tools? for example something simple like this. def run(name): while name: …
Linda
  • 2,375
  • 4
  • 30
  • 33
1
vote
2 answers

How to design a resilient and highly available service in python?

I am trying to design a resilient and highly available python API back-end service. The core service is designed to run continuously. The service has to run independently for each of my tenants. This is required as the core service is a blocking…
auny
  • 1,920
  • 4
  • 20
  • 37
1
vote
3 answers

Cannot load daemon when creating java service

I am trying to create a JAVA deamon like explained here How to convert a java program to daemon with jsvc? I build it with the following command javac -cp .:commons-daemon-1.0.15.jar Main.java jar cfe ServiceDaemon.jar example.Main Main.class…
ZAky
  • 1,209
  • 8
  • 22
1
vote
2 answers

How to get the daemon Rserve running as worker dyno on Heroku

This question is an obscure problem - sorry for the length. I'm trying to deploy an app to Heroku. The app runs Rserve - a daemon of the R language, for running statistical reports. This should in principle be no more difficult than getting any…
metalaureate
  • 7,572
  • 9
  • 54
  • 93
1
vote
1 answer

PHP service (daemon)

I have a website that provides some sort of service via REST API. All functionality has regular HTTP request-response logic. But additionally I need another PHP script that does some continuous stuff. On the one hand, this script should have an…
nyan-cat
  • 610
  • 5
  • 19