[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: monit didn't start services at boot
From: |
Alessandro Ranellucci |
Subject: |
Re: monit didn't start services at boot |
Date: |
Wed, 17 Nov 2010 14:15:50 +0100 |
On 17-11-2010 at 13:59, Alessandro Ranellucci wrote:
>I think that I will fix this problem by setting up an rc
script that
>starts the processes manually at reboot in addition to monit.
This quick and dirty script starts all processes defined in
monitrc. It may be useful for someone out there:
# cat /etc/init.d/monit-startup
#!/bin/sh
case "$1" in
start)
/usr/bin/perl -ne '/start program ?= ?"(.+?)"/ &&
system $1' \
/etc/monit/monitrc
esac
exit 0;
Install it with "chmod 755 /etc/init.d/monit-startup" and
"update-rc.d monit-startup defaults".
- alessandro.