Tag Info

New answers tagged

0

Well, that is one of the main reason, why debian is moving to systemd. sysvinit (/etc/init.d) is not able to detect, if a service is down/not responding. This means you have to monitor these services and escalate if a service won’t do his job anymore. probably the easiest thing to do would be to migrate to another daemonhandler like systemd (default in ...


2

You could add it to /etc/inittab with respawn: d1:2345:respawn:/path/to/your/first_daemon arg1 arg2 d2:2345:respawn:/path/to/your/second_daemon arg1 arg2 It's a dirty hack, but I've used it succesfully in the past on older sysv-init systems.


0

Debian will eventually have systemd, so this is the way to do it on a Linux system which uses systemd (and many do already; you might consider switching distributions). Systemd can handle keeping the service alive for you automatically; no other tools are required. Simply make sure that Restart=always is set in the service file's [Service] section. # vi ...


0

The standard approach for me is to use the Monit utility for this. I can't quite tell from your description if you've written something like Monit and are trying to make sure it's running, or if you need something to watch the daemon you've created.


0

Best practice is to ensure that your daemons DO NOT STOP in the first place. Failing that you might want to have a look at DJB's daemontools


0

Both Ubuntu and debian have the service utility. Use service servicname start|stop for everything but arch.


0

So at last I figured out that the script runs on reboot and is working, it is just not outputed by forever list. Seems to be a forever's bug.


0

The problem is partly within the configuration files and partly elsewhere. On some of the 20 machines where Bacula was installed I have altered the default port on which bacula-fd is listening (had reasons for that) and this proved to be the root of the problem. As for the /etc/bacula/bacula-fd.conf the relevant line is this one: FDport = 13802. The thing ...



Top 50 recent answers are included