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
|
||||
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=$?
|
||||
|
|
Loading…
Reference in New Issue