Questions tagged [daemon]

On linux an unix-like systems is demon the designation of processes running in the background and providing certain services. Direct user intaractions with demons are not intended.

286 questions
4
votes
1 answer

Daemon can't be started from fabric script or on boot - only interactively

I have a daemon script in /etc/init.d that performs some background packet logging using the tcpdump command. The script starts up fine using an interactive shell using sudo /etc/init.d/packetlog start When I execute the same command through my…
rupello
  • 115
  • 9
4
votes
4 answers

Working around the stale pidfile problem after hard restart kills my daemon

I'm using Red Hat Linux (RHEL5) on a (VMWare) VM. I've written a daemon which should stay running all the time and automatically run on boot. Last night the VM host had an unrecoverable hardware problem and the VM abruptly halted. When it came…
Nathan
  • 360
  • 1
  • 5
  • 10
4
votes
3 answers

How to install Mono XSP as a daemon on Debian?

I want XSP to run on my virtual Debian 5 as a daemon. How can I do that? I tried next: $ sudo cp /etc/init.d/skeleton /etc/init.d/xsp updated the script properly: PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Mono…
abatishchev
  • 541
  • 1
  • 9
  • 31
4
votes
2 answers

Docker daemon ignores daemon.json on boot

My Docker Daemon seems to ignore /etc/docker/daemon.json on boot. Similar to this question, I'm having some troubles telling the Docker daemon that it should not use the default 172.17.* range. That range is already claimed by our VPN and prevents…
Rody Oldenhuis
  • 642
  • 5
  • 13
3
votes
3 answers

Daemon for N autossh tunnels

I use autossh to create a persistent tunnel from localhost to remotehost. Starting autossh manually works fine, but if localhost reboots, the tunnel is gone. That's no surprise. How to create a daemon to re-open around 20 tunnels after the reboot of…
guettli
  • 3,591
  • 17
  • 72
  • 123
3
votes
1 answer

How should I manage a long running server process on Ubuntu?

I have an app (in the form of a single binary) that I need to run on one of my servers, and I'd like to be able to control its lifecycle properly. What I'd like is the following: simple one command start/stop/restart as little configuration as…
Jakub Arnold
  • 1,744
  • 10
  • 26
  • 33
3
votes
1 answer

How can I find what's starting crond?

I need to stop crond at the command line. (I'm writing a script which needs to stop it, do some work, and then start it again. I'd rather not remove and replace the crontab file because it's more prone to error.) However, when I run service crond…
Arkaaito
  • 453
  • 7
  • 16
3
votes
3 answers

Can I use Bash interpreter in service/daemon scripts?

I'm writing a Debian/Ubuntu service that should start on at runlevel 2-5. Most of the existing services I came accross are written using /bin/sh (Shell) interpreter while /bin/bash (Bash) offer lot of improvement and simplification. So is there…
Édouard Lopez
  • 425
  • 1
  • 3
  • 13
3
votes
5 answers

How to start process as a daemon?

I have created a service which consists of a web fronted (nginx), python runner glue handler (uwsgi) and my own python code (fetcher). I have made a script (deploy.sh) to start the difference services: nginx uwsgi --ini inifie.ini python fetcher.py…
3
votes
6 answers

Running JBoss-5.1.0.GA as a service / daemon on Red Hat?

I am using JBoss 5.1.0 GA on Red Hat (Amazon ECS)... Am trying to set it up so JBoss will run as a service / daemon (right now it only starts up when I manually SSH and invoke sh $JBOSS_HOME/bin/run.sh). Here's what I did so far: (1) Created the…
socal_javaguy
3
votes
2 answers

Run Python script at startup using upstart

I'm trying to create an upstart script to run a python script on startup. In theory it looks simple enough but I just can't seem to get it to work. I'm using a skeleton script I found here and altered. description "Used to start python script as a…
never_odd_or_even
  • 325
  • 1
  • 4
  • 12
3
votes
2 answers

Debian startup - start a daemon after postgresql

i'm configuring my debian server and i don't manage to start a daemon correctly. In order to start, my daemon has to find the Postgresql socket (located at /var/run/postgresql/.s.PGSQL.5432), but the daemon doesn't start. I checked the logs, it's…
Lght
  • 127
  • 1
  • 4
3
votes
1 answer

How to use monit to make sure only one instance of process is running

I have ruby daemons running. Once in a while we'll accidentally start up a second instance of it, which causes race conditions. Can I use Monit to detect if multiple instances of 'my_ruby_daemon' is running? And if so kill the extra instance?
3
votes
2 answers

Spawning multiple instances of a daemon in Ubuntu

I have a python script that listens and blocks while it waits for data on a redis list. It runs fine in upstart using the following: description "stage message consumer" author "Nilesh Ashra" start on started mountall stop on…
3
votes
3 answers

Linux: user defined daemons/services

I'm looking for a framework/library/environment so an ordinary user can set up it's own server processes. These processes should run under his uid as any other user process. However the definition of which processes should be started, with arguments…
Felix Schwarz
  • 213
  • 3
  • 12