Computer program that runs as a background process, rather than being under the direct control of an interactive user.
2
votes
4answers
41 views
How to set proper monitoring of my services in a automated way? So that if one crash it auto on the fly restarts?
How can i setup monitoring to my system services?
Either using automated script which scan every moment, if httpd, mysqld, and my custom daemon is running or not, if not running it will automatically ...
1
vote
0answers
26 views
start_daemon fails with exit code 7
I have a daemon called mydaemon.bin and a shell script called start-my-daemon.sh that sets some environment variables and then starts mydaemon.bin, which in turn calls the unix function daemon to ...
3
votes
1answer
55 views
Difference between long running process and daemon?
I'm trying to use Forever to keep my nodejs scripts up and running
As per Forever's homepage it says
[Long Running Process]
The forever process will continue to run outputting log messages to ...
4
votes
1answer
46 views
Understanding when background process gets terminated
I have a script which starts a number of background processes and if works fine when called from the cmdline.
However the same script is also called during my xsession startup and additionally on ...
1
vote
1answer
42 views
Properly Setting Red Hat Daemon Umask
I've been trying to figure out the proper location to set daemon umasks in RedHat 5. All my searches lead to setting it in /etc/init.d/functions or /etc/sysconfig/init.
What are the pros/cons of ...
1
vote
1answer
109 views
Problem starting a service running Debian
I want to run a UPNP renderer as a service on a Raspberry Pi using Raspian, a Debian based distro.
Actually, everything runs fine but one thing : I can't manage to start the service at boot time at ...
1
vote
0answers
41 views
Lock a script starting daemons
I'm run a script with cron:
*/10 * * * * flock -n /tmp/lock script
I have to make sure that only one instance of the script is running at the same time, and for that I'm using flock. The problem is ...
0
votes
1answer
176 views
Get transmission web interface working with web server
I have my transmission server working on default port and i want to be able to
use the web interface with an url like http://my.domain/torrents.
I tried adding a location and a proxy conf to nginx ...
1
vote
2answers
157 views
Which script from /etc/init.d/ started the process?
Let's say we have a PID of a process and we know that it was started by init during startup. How do we find the script name that started it?
One way is to run grep $PROCESS_NAME /etc/init.d/*, but ...
1
vote
0answers
74 views
How to setup a simple email daemon with autorespond and mail forwarding?
Since my mail provider unfortunately offers neither an autoresponder nor forwarding mail to others during vacancy, I'd like to setup e.g. a RaspberryPi to regularly check my mail account (via POP3 or ...
2
votes
2answers
679 views
What is log_daemon_msg ?
I was looking through /etc/init.d/ssh to get an idea of how a "proper" sys daemon is run at boot (I'm trying to add svnserve to that list). I saw this log_daemon_msg used as a command, but I have no ...
0
votes
1answer
182 views
How do I write a login daemon?
There are many guides to the steps for correctly launching a daemon process, such as Stevens' chapter in Advanced Programming in the UNIX Environment. There is less agreement on what steps should be ...
8
votes
1answer
224 views
Why does “su -c <command> &” seemingly allow a command to run in the background without hanging up
I was helping a colleague who was having problems with a background process intermittently dying.
I found out that they were starting the background process by logging in to the server and executing:
...
3
votes
1answer
238 views
How to manage fedora services and daemons using the GUI?
I am using Fedora 17, I need a GUI program to start/stop and enable/disable services and daemons.
I have installed "system-config-services" but it did not have enable/disable feature(run it with ...
3
votes
2answers
336 views
How to set OOM killer adjustments for daemons permanently?
Running some Linux servers with single or just a few vital system service daemons, I would like to adjust the OOM killer for those daemonized processes in case something odd happens. For example, ...
18
votes
4answers
725 views
What's the difference between running a program as a daemon and forking it into background with '&'?
What are the practical differences from a sysadmin point of view when deploying services on a unix based system?
1
vote
1answer
500 views
/etc/init.d/script, or /etc/inittab - respawn on die
I have a daemon/service (milter-regex), that is dying. I'm only using it temporarily (A few months), so don't care too much, but I want it to restart when it dies.
It is an init.d script. 'service ...
5
votes
4answers
650 views
How to check that a daemon is listening on what interface?
Ex.: an sshd is configured to only listen on wlan0. So. Besides checking the sshd_config how can I check that a daemon is listening on what inerface? netstat can do it? how? (OS: openwrt or scientific ...
7
votes
5answers
2k views
Ubuntu12.04: How to disable a daemon process at startup
I normally use service start/stop or initctl start/stop to start or stop a daemon process but now what I am looking for is to disable a daemon process from starting at startup example mysqld.
...
1
vote
0answers
100 views
Upstart: How to respond to startup of a service, thats not part of Upstart?
I'm running Ubuntu server and playing around with Upstart. I have installed PostgreSQL database server which doesn't use Upstart system, however im also writting an Upstart script that starts another ...
1
vote
2answers
570 views
Is there an easy way to create a FreeBSD rc script?
I have a FreeBSD jail in which I run a server using the command:
/usr/sbin/daemon /path/to/script.py
At the moment I have to run this command every time I restart the machine and the jail starts. ...
0
votes
2answers
759 views
Auto Start MySQL and Apache
How does one get certain daemons to automatically startup on a restart of the server?
I found this post on Server Fault but I am looking of a more in depth explanation of how getting a daemon to auto ...
2
votes
1answer
133 views
Why does Redhat's daemon function not have a group setting?
Background:
I'm a Ubuntu/Debian fan and most of my development experience has been on that platform but my current employer uses Redhat. I needed to write a simple init.d script and want the ...
0
votes
1answer
361 views
What does `avahi-dnsconfd` daemon?
I've installed KDE desktop, that depends on avahi. It has two daemons avahi-daemon and avahi-dnsconfd.
In ArchLinux wiki there is no info about avahi-dnsconfd. I've tried Daemon and Avahi pages.
4
votes
3answers
157 views
is there something like a per-user daemon?
I need to run some background processes that live as long as I am logged in with a certain user.
Does there exist something like a per-user daemon? I know only of global daemons that live from ...
1
vote
1answer
374 views
Why does Ubuntu store the daemon logs on /var/log/daemon.log.1 instead of /var/log/daemon.log?
Pretty much what the title says. Trying to cat /var/log/daemon.log doesn't produce any output, while cat /var/log/daemon.log.1 does. Why do daemons store logs to the /var/log/daemon.log.1 file instead ...
2
votes
1answer
151 views
How to log processes in daemon-mode?
I would like to save the standard output of the program motion in a text file. If I don't use motion in daemon-mode I would simply do it by:
motion > log.txt
But what is the equivalent when I ...
2
votes
1answer
2k views
Heartbeat 3 binding socket error
I've been tying to install Heartbeat3.0.5+Pacemaker1.0.12 on CentOS 6.3 64bit via yum. The installation seems to be successful, but there is a problem when starting Heartbeat.
I put some info related ...
4
votes
4answers
275 views
How to prevent atd from running past jobs?
The at daemon is a great tool! However, if a job is scheduled for 8:00 am and the machine is off at that time, at will run the job whenever the machine is booted. What I would like to do is stop it ...
5
votes
1answer
846 views
How Do I Add My Own Daemons in Arch Linux? (BSD-style init)
I have created a symlink to a start/stop/etc. wrapper bash script in /etc/rc.d, added it to DAEMONS=() in rc.conf, but the process it points to isnāt starting on boot, and isnāt showing up in the ...
3
votes
0answers
107 views
Is it good practice to create a background job within an init script if the process can not daemonize itself?
I am fairly new to *nix, and have come across the need to drop multiple processes, that should be run 100% of the time. to background using &.
I use the following line in an init.d script to do ...
1
vote
1answer
573 views
daemon function in /init.d does not run the program in the background in fedora13
I use Fedora 13 and am trying to create a service for darkice. I put the script in the /etc/init.d directory and if I use the command service darkice start, the darkice is running in the foreground ...
3
votes
1answer
269 views
Running a command at startup
I recently came across "remind" in Linux. I liked it almost immediately, but for my reminders to pop up, I needed to run 'remind' in daemon mode. Done quite simply using the following command:
remind ...
9
votes
3answers
4k views
How to run Dropbox daemon in background?
I'm using Debian 6 and Dropbox. I followed these commands to install it.
When I run ~/.dropbox-dist/dropboxd ā Dropbox works and stuff. Problem is that when I close terminal or, even worse, ā ...
5
votes
2answers
1k views
Running piped bash script in background
I'm attempting to build a monitoring script to watch localhost communication using netcat. I have two scripts that I've built, one to start the monitoring loop and one for the loop itself. They are as ...
5
votes
4answers
527 views
Is there a JVM daemon?
I'm curious, is there a JVM which runs as an OS daemon, and forks when a new process should be started in it ( i.e. like init, or zygote process on Android )? If no, why not? I am not talking about a ...
2
votes
1answer
352 views
Preventing ChromeOS from blanking the screen when working on a different tty
I am running Archlinux in a chroot alongside Chrome OS on a chromebook. The original project is there, my fork of it is here (mostly similar).
The issue is that the display power management of Chrome ...
4
votes
1answer
202 views
Is it possible to write portable service scripts to control a daemon?
I (or one of my colleagues) need to write one or more shell scripts to control the execution of a daemon. We need to be able to start the daemon, tell it to gracefully shut down, and force a shutdown. ...
1
vote
5answers
737 views
How to stop a program running as daemon
I have launched iperf in daemon mode with iperf -s -D and now I want to stop the service.
I tried to use sudo kill pid but it neither work nor complain. The daemon is still running when I check ...
3
votes
1answer
427 views
Cancelling execution of daemons during boot
During boot a series of predetermined daemons (such as dbus, hal, network) are started. Whenever I'm not connected to an Ethernet cable the network service will obviously fail, but before failing it ...
0
votes
1answer
1k views
Can't start mysqld
I've installed mysql through
$ sudo apt-get install mysql-server-core-5.1
$ sudo apt-get install mysql-client-core-5.1
This is my current conf file
And the service won't start, at first the ...
4
votes
2answers
1k views
Make daemon start up with Linux
I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up.
I am a beginner on Linux systems.
I have tried to modify /etc/init.d/skeleton to add a script into ...
0
votes
3answers
239 views
Prevent init daemon echoing on TTY
Below is an init script which starts/stops a daemon. The daemon is unfortunately printing the parsed packet data (from /home/nuthan/program/server), a socket server written in perl, listening to a ...
2
votes
5answers
520 views
How can I run a daemon with custom parameters
I am wondering how I can run a daemon, in this case NTP, with custom parameters.
For example in my Ubuntu PC I observe that I've got ntpd running this way:
$ ps aux | grep ntpd
ntp 5936 ... 0:00 ...
1
vote
2answers
124 views
Simple feed aggregation server
Iām looking for a program that runs as daemon, downloads Atom and RSS feeds at least every minute, and provides a paginated Atom feed of all entries of all feeds through a simple HTTP server. It ...
1
vote
2answers
198 views
How to log the output of a daemon application?
I have a Java program running as a daemon (thanks to YAJSW, a wrapper for java).
The thing is that this java application writes several lines of console text, (simply imagine a Hello World App). If I ...
1
vote
1answer
527 views
How to make SSH tunnel as daemon?
Actually, I need a secured VPN, but configuring it was too hard for me. So I decided to use SSH tunnel. The tunnel could be established when I logged in. :(
(1) How can I make a SSH tunnel without ...
5
votes
2answers
2k views
How to run a C program as a daemon?
I have a C program which I want to run as a daemon. How do I install it so it will run as a daemon on CentOS? Someone said to use @reboot, and some said to put it in /etc/rc.d/rc.local. Which is the ...
8
votes
2answers
377 views
What's the difference between udev and hald?
I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon. From what I gather, both seem to be responsible for managing hot ...
0
votes
2answers
192 views
process works without ampersand but doesn't work with ampersand
I wrote a small script to run as a daemon, everything seems to work when I run the command in unix:
php script.php
everything seems to work correctly, when I terminate that script and us the ...
