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
3 answers

Daemonized script fails to start (for Google App Engine)

I'm trying to daemonize a script. I followed a couple tutorials and came up with the following script (never done it before, just filled in a template, not sure what 345 70 30 mean): #!/bin/bash # parserservices Parser Services # # chkconfig:…
Josep Valls
  • 5,483
  • 2
  • 33
  • 67
1
vote
1 answer

Python: threaded callback not working with daemon mode?

I'm new to Python. I've a threaded callback code working fine on my raspi. import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) import time from daemon import runner GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # float switch goes down (closed…
kameo
  • 11
  • 1
1
vote
0 answers

Process as Daemon on Init.d

I am trying to configure airflow webserver and scheduler to run. It is a python application. I used "python setup.py install" and then using the shell comand: (start-stop-daemon --start --quiet --exec airflow webserver) started the…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
1
vote
5 answers

Benefits of Tomcat (or equivalent) for a simple service

I'll need to develop a Java service that is simple because: It only communicates via a TCP socket, no HTTP. It runs on a dedicated server (there are no other services except the basic SSH and such) Should I make this a standalone service (maybe in…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1
vote
0 answers

need help in Docker Daemon authentication and authorization

I am looking for adding more security to docker daemon. Like my company have docker host running some where and all users of company trying to connect to docker host using docker client and doing some operations(docker run,docker build,docker…
1
vote
1 answer

ENV value is not visible on server restart with bash daemon script

I have an embedded jetty app that I want to start run automatically in the background by using a ‘start-stop-daemon’ script. When I start the script as follows everything goes well.., and the ENV (environment variable) is visible to the startup…
blsn
  • 1,077
  • 3
  • 18
  • 38
1
vote
2 answers

Testing a Linux daemon on an embedded system

I have written a daemon in linux for doing dhcp for an embedded system. This platform only has a linux kernel running on it and have no CLI support. What is the best way for me to test my daemon? How do I write a program that will call the main…
Ullas
  • 33
  • 5
1
vote
1 answer

How do I run a Ruby app using Sinatra as a service

I know this question has been asked and answered many times, and I've read every Q&A on this subject, but I am still totally confused. I am a Ruby noob, trying to get a Ruby app built (by someone else) with Sinatra and Strava to run as a service in…
1
vote
1 answer

Docker daemon processes

I have found, that Docker daemon runs more than in one instance. I have got PID(13399) with service docker status, but there are also different PIDs. I have created only one container.
user4725754
1
vote
1 answer

Reading and writing data via named pipe with demonization

I have two scripts: The first one ('Reader') is reading data from named pipe and the second ('Writer') is writing data to named pipe. I am run 'Writer' from daemon (daemon was created with double fork mechanism). If 'Writer' crash I want to print a…
Ivan Kolesnikov
  • 1,787
  • 1
  • 29
  • 45
1
vote
2 answers

Check if daemon process is runnning

I am running several daemon processes, I need to maintain a log to check which all processes are running after a time interval of every 15 mins. Code I tried to implement is def monitor_deamons(): print "starting monitor" demo = ps -ef | grep…
onkar
  • 4,427
  • 10
  • 52
  • 89
1
vote
2 answers

How does daemon thread work in Producer Consumer? Unable to get it working

I have implemented Producer Consumer code, but what I want to know is how the daemon thread works? In the following code Producer and Consumer are working fine. As per my knowledge Daemon thread is a service provider for other threads. Daemon…
Musaddique S
  • 1,539
  • 2
  • 15
  • 36
1
vote
1 answer

Boost.Log and creating daemons; `fork` disallowed?

I need to add a command-line option to my application saying that it is to be run as a deamon. However, I am also using boost logging library to keep logs of this application, and I found out that boost logging does not support forking. This seems…
1
vote
0 answers

Running delayed_jobs with daemon

I have paperclip setup with the delayed_jobs and daemon gem to process my images in the background. The issue I'm having is that I keep having to call worker: rake jobs:work manually in it's own terminal instance to process the queue. I can't seem…
Batman
  • 5,563
  • 18
  • 79
  • 155
1
vote
2 answers

Run Linux commands from Daemon

I need to run a linux command such as "df" from my linux daemon to know free space,used space, total size of the parition and other info. I have options like calling system,exec,popen etc.. But as this each command spawn a new process , is this…
Sirish
  • 9,183
  • 22
  • 72
  • 107