[icinga-devel] [PATCH] Check if icinga is already running in init script before starting it Closes: #77

Hendrik Baecker andurin at process-zero.de
Mon Oct 5 12:06:38 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi Christoph,

patch applied well and was pushed yesterday.

Thank you.

- -
Hendrik

Am 04.10.2009 11:41, schrieb Christoph Maser:
> --- daemon-init.in |    8 ++++++++ 1 files changed, 8
> insertions(+), 0 deletions(-)
>
> diff --git a/daemon-init.in b/daemon-init.in index 6a5bcfc..272728c
> 100644 --- a/daemon-init.in +++ b/daemon-init.in @@ -121,6 +121,14
> @@ fi case "$1" in
>
> start) +        # Check if icinga is already running +            $0 status
> > /dev/null +                if [ $? -eq 0 ]; then +
> pid_icinga +                        echo "Icinga is already
> running. PID: $IcingaPID" +                        exit 1 +
> fi + echo -n "Starting icinga:" $IcingaBin -v $IcingaCfgFile >
> /dev/null 2>&1; if [ $? -eq 0 ]; then

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
 
iD8DBQFKycUulI0PwfxLQjkRAk7NAJ4qzlFvTp50RAId+s3dNAP3lrTUnQCeLLgP
9KL+fl/PBBsjlV1Nws+2fyU=
=9gNx
-----END PGP SIGNATURE-----





More information about the icinga-devel mailing list