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

Commit

Permalink
initscript: Only use lockdir if existing.
Browse files Browse the repository at this point in the history
Refs #5684
  • Loading branch information
Michael Friedrich authored and Michael Friedrich committed Mar 3, 2014
1 parent 415aca8 commit 3485855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions daemon-init.in
Expand Up @@ -57,12 +57,6 @@ if [ ! -f $IcingaCfgFile ]; then
exit 1
fi

# Check that lockdir exists.
if [ ! -d $IcingaLockDir ]; then
echo "Lockfile dir $IcingaLockDir not found. Exiting."
exit 1
fi

## helper functions ##

# check status if icinga daemon
Expand Down Expand Up @@ -194,7 +188,7 @@ start(){
$IcingaBin -d $IcingaCfgFile
bin_exit=$?
fi
touch $IcingaLockDir/$IcingaLockFile
if [ -d $IcingaLockDir ]; then touch $IcingaLockDir/$IcingaLockFile; fi
echo "Starting icinga done."
exit $bin_exit
}
Expand Down
8 changes: 1 addition & 7 deletions rc.ido2db.in
Expand Up @@ -86,12 +86,6 @@ if [ ! -f $Ido2dbCfgFile ]; then
exit 1
fi

# Check that
if [ ! -d $Ido2dbLockDir ]; then
echo "Lockfile dir $Ido2dbLockDir not found. Exiting."
exit 1
fi

## helper functions ##

# checks status if ido2db daemon
Expand Down Expand Up @@ -192,7 +186,7 @@ case "$1" in
# start ido2db daemon
$Ido2dbBin -c $Ido2dbCfgFile
bin_exit=$?
touch $Ido2dbLockDir/$Ido2dbLockFile
if [ -d $Ido2dbLockDir ]; then touch $Ido2dbLockDir/$Ido2dbLockFile; fi
echo " done."
exit $bin_exit
;;
Expand Down

0 comments on commit 3485855

Please sign in to comment.