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

Edit info.plist file using applescript/terminal

How can I add NSUIElement 1 to an info.plist file using applescript or terminal? Or is there another way to automatically make an application into a daemon?
user3541125
  • 451
  • 2
  • 5
  • 11
1
vote
1 answer

Launch daemon won't launch bash script in OSX

I am learning how to create a Launch Daemon. This job aims to create a text file on on the user's desktop on boot up. The plist file is placed in Library/LaunchDaemons/. Here is the plist file:
Fried Rice
  • 3,295
  • 3
  • 18
  • 27
1
vote
1 answer

Exit daemon thread

How do I close/exit a thread or daemon thread? I have something like this in my application: th = ThreadClass(param) th.daemon = True if option == 'yes': th.start() elif option == 'no': # Close the daemon thread How do I exit the…
bulkmoustache
  • 1,875
  • 3
  • 20
  • 24
1
vote
2 answers

Launching a service from c++ with execv

I'm trying to launch a linux service from a c++ and I do it successfully but one of my process is marked as "defunct" and I don't want that my parent process dies. My code is (testRip.cpp): int main() { char* zebraArg[2]; zebraArg[0] = (char…
Chris
  • 327
  • 2
  • 6
  • 22
1
vote
1 answer

How to keep Supervisord running unconditionally?

In the Supervisord conf files you can specify to autorestart a certain program with: autorestart=true But is there an equivalent for [Supervisord] itself? What is the recommended method of making sure Supervisord continues running unconditionally,…
1
vote
4 answers

Restarting a linux daemon

I have Linux daemon that I have written in C++ that should restart itself when given a "restart"-command from a user over the network through its console. Is this possible? I use a /etc/init.d script. How can I program it to restart itself? Should I…
user152949
1
vote
1 answer

Daemon in background in python

I need to work this script in background like daemon, till now i just could it make work but not in background: import threading from time import gmtime, strftime import time def write_it(): #this function write the actual time every 2 seconds…
John Lapoya
  • 582
  • 1
  • 8
  • 21
1
vote
3 answers

Instantly stopping a perl daemon

I have a daemon running on Ubuntu written in Perl, it is now single threaded. When it starts up it does the usual Proc::Daemon stuff and then goes into a while loop bounded by a boolean. The daemon starts up fine with "service daemon start". But…
jurgen
  • 325
  • 1
  • 11
1
vote
1 answer

Gentoo service takes too long to start and init system gives up

At some points in my gentoo system mysqld daemon would take too much time to start. When system boots up, gentoo timeouts and thinks that the daemon has not started, however it starts eventually in background. But gentoo still thinks that it is not…
1
vote
1 answer

Any reason why pid is not created and process does not start?

I am trying to use python-daemon with this script to start and stop the run of some code in the background. (ultimate goal is to have this in an AWS instance). For some reason that escapes me the pid file is not being generated and I think the…
jpsfer
  • 594
  • 3
  • 7
  • 18
1
vote
1 answer

Integrate Django with others not web systems in python

I have a theoretical question about how integrate django with others subsystems not web oriented. I don't know if it is possible develop this class of systems with django or if there are another best alternative (another web framework). I propose a…
Garet
  • 365
  • 2
  • 13
1
vote
1 answer

How to determine what Python daemon is doing in the background?

I've got a Python process that is running as a daemon, using daemon runner, in the background. Its purpose is to query for some information from another computer on the network every 15 minutes, do some processing, and then send it somewhere else…
mp94
  • 1,209
  • 3
  • 11
  • 23
1
vote
1 answer

Python - os.kill(pid, SIGTERM) is causing my process to become a zombie

I have a Python script that starts a daemon process. I was able to do this by using the code found at: https://gist.github.com/marazmiki/3618191. The code starts the daemon process exactly as expected. However, sometimes, and only sometimes, when…
Brett
  • 11,637
  • 34
  • 127
  • 213
1
vote
3 answers

Unexpected heap usage in J2EE Struts app

I am having few queries regarding heap usage in my app. At instances it is observed that user activity is minimal (or nil ) on weekend but heap usage increases linearly, reaches the threshold causing the GC to kick in. I wish to analyze the cause of…
Ravi Gupta
  • 4,468
  • 12
  • 54
  • 85
1
vote
1 answer

Python: How to get the output from gsmsmsd Daemon?

I have a small Problem in Python, i want to start the "gsmsmsd" daemon (to read incoming SMS) with python and read the output from this daemon. If i start this daemon with my console there is like an running output of nothing until an SMS comes in,…