Add option in init script

git-svn-id: http://svn.merethis.net/centreon-esxd/trunk@68 a5eaa968-4c79-4d68-970d-af6011b5b055
This commit is contained in:
Quentin Garnier 2013-07-23 08:31:41 +00:00
parent 9295f468b4
commit bd095d1633
1 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@
binary=/usr/bin/centreon_esxd
servicename=$(basename "$0")
options=""
user=root
timeout=60
@ -45,9 +46,9 @@ start() {
fi
if [ "$(id -u -n)" = "$user" ] ; then
daemon ''$binary' "'$config_file'" > /dev/null 2>&1 &'
daemon ''$binary' '$options' > /dev/null 2>&1 &'
else
daemon --user $user ''$binary' "'$config_file'" > /dev/null 2>&1 &'
daemon --user $user ''$binary' '$options' > /dev/null 2>&1 &'
fi
pid=$(pidofproc $binary)
RETVAL=$?