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:
parent
9295f468b4
commit
bd095d1633
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
binary=/usr/bin/centreon_esxd
|
binary=/usr/bin/centreon_esxd
|
||||||
servicename=$(basename "$0")
|
servicename=$(basename "$0")
|
||||||
|
options=""
|
||||||
user=root
|
user=root
|
||||||
timeout=60
|
timeout=60
|
||||||
|
|
||||||
|
@ -45,9 +46,9 @@ start() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(id -u -n)" = "$user" ] ; then
|
if [ "$(id -u -n)" = "$user" ] ; then
|
||||||
daemon ''$binary' "'$config_file'" > /dev/null 2>&1 &'
|
daemon ''$binary' '$options' > /dev/null 2>&1 &'
|
||||||
else
|
else
|
||||||
daemon --user $user ''$binary' "'$config_file'" > /dev/null 2>&1 &'
|
daemon --user $user ''$binary' '$options' > /dev/null 2>&1 &'
|
||||||
fi
|
fi
|
||||||
pid=$(pidofproc $binary)
|
pid=$(pidofproc $binary)
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
|
|
Loading…
Reference in New Issue