Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Check if icinga is already running in init script before starting it C…
Browse files Browse the repository at this point in the history
…loses: #77
  • Loading branch information
Christoph Maser authored and andurin committed Oct 4, 2009
1 parent d5bebfb commit 46b13a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions daemon-init.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46b13a8

Please sign in to comment.