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

Load Ruby on Rails models without loading the entire framework

I'm looking to create a custom daemon that will run various database tasks such as delaying mailings and user notifications (each notice is a separate row in the notifications table). I don't want to use script/runner or rake to do these tasks…
epochwolf
  • 12,340
  • 15
  • 59
  • 70
1
vote
0 answers

Get Oracle trigger result from C program

I have a daemon written in C under linux and i want the daemon to be notified when a table inside an Oracle database has changed (update or insert in the table). It seems that a Trigger or dbms_scheduler may help, any ideas (snippets of code with an…
iPadDevloperJr
  • 992
  • 3
  • 20
  • 34
1
vote
0 answers

Interaction between perl process and C++ daemon

I need to design solution for below problem statement. Problem Statement- Perl process gets initiated as user requests and takes some tasks(say n) to be done; then it handover this to a daemon process which is written in C++. Now out of those n…
Gaurav Pant
  • 4,029
  • 6
  • 31
  • 54
1
vote
0 answers

Execute a script in PHP from another PHP file (exec)

Originally I had a cronjob that executed a php file every day. Apparently the php file was to heavy and the cronjob was not executing it. I opted for creating a Daemon that sleeps for 24hrs and works perfectly well, except that I believe that the…
multimediaxp
  • 9,348
  • 13
  • 49
  • 80
1
vote
4 answers

Why should I create a daemon instead of a command line tool?

I'm aware this can appear to be a very silly question for most of the IT crowd, but I'm new at designing this kind of architecture (only developed in PHP before). I'm building an application that makes use of a specific OS function. The end user is…
1
vote
0 answers

How to call InetD on PORT and call PHP file

I want to listen a port using my PHP code. Can I use InetD to call my PHP file when some data comes on a particular port?
1
vote
1 answer

Rails App + Background Process Sharing Models

I've been planning out a Rails RSS aggregator lately, and I ran into something I could use some advice on. The part that would handle the polling and parsing of users' subscribed feeds needs to be running constantly, which I assume a daemon is…
redwall_hp
  • 1,067
  • 2
  • 10
  • 18
1
vote
0 answers

Unix daemon starts before network dependency is up

I am trying to create a daemon that is started automatically during the boot-up. It depends on the network, local fs and remote fs services. I believe I have done everything to indicate these dependencies and I expect the daemon to be started…
sky
  • 115
  • 2
  • 10
1
vote
3 answers

Running script constantly in background: daemon, lock file with crontab, or simply loop?

I have a Perl script that queries a database for a list of files to process processes the files and then exits Upon startup this script creates a file (let's say script.lock), and upon exit it removes this file. I have a crontab entry that runs…
Mauritz Hansen
  • 4,674
  • 3
  • 29
  • 34
1
vote
1 answer

Windows SMTP server for email api

I'm architecting a web service where users can update, for example, a blog by sending an email. What's a good email server for Windows for this? Any other advice / examples appreciated! Thanks, Jason
Jason Suárez
  • 2,445
  • 3
  • 18
  • 20
1
vote
3 answers

How can a Perl CGI script communicate with a daemon on the webserver?

I am building a Web interface to monitor an embedded system. I have built a Perl script which runs remote commands and gathers output from that system. Now what I need is a Web interface which makes calls to this script (executes remotes command)…
mtanish
  • 148
  • 3
  • 9
1
vote
3 answers

Can a 32 bit daemon be run on 64 bit linux

A simple question (maybe) can a daemon coded and compiled as 32-bit be run on a 64-bit linux distro? I haven't seen the info anywhere where it can't be.
1
vote
1 answer

Ruby Daemon gem how to avoid exit errors?

I am running the following script with the $ruby script_name command. The parent script spawns two child processes and waits for a SIGTERM or a SIGINT. The parent script is able to terminate the child processes as expected. However, on inspecting…
devil
  • 1,829
  • 16
  • 23
1
vote
0 answers

simple java daemon loop receives out of memory exception

I have the following java daemon which implements the apache commons daemon. It is running on an ec2 amazon ami with icedtea6. public class MainDaemon implements Daemon { private Thread myThread; private boolean stopped = false; @Override public…
Atma
  • 29,141
  • 56
  • 198
  • 299
1
vote
1 answer

Celery and Django - Running worker as Daemon (Mac OS X)

I have a Django project in Mac OS X (10.8.4) with an application that intends to model an airport. In the database, SQLite, I have several tables and one of them is for flight delays (flight, date, new_hour, cause). My objective is to use Celery to…
Octavio
  • 456
  • 4
  • 22
1 2 3
99
100