summaryrefslogtreecommitdiff
path: root/development/hhvm/etc/rc.hhvm
diff options
context:
space:
mode:
Diffstat (limited to 'development/hhvm/etc/rc.hhvm')
-rw-r--r--development/hhvm/etc/rc.hhvm4
1 files changed, 2 insertions, 2 deletions
diff --git a/development/hhvm/etc/rc.hhvm b/development/hhvm/etc/rc.hhvm
index 168fe15a77..33ab15a777 100644
--- a/development/hhvm/etc/rc.hhvm
+++ b/development/hhvm/etc/rc.hhvm
@@ -9,7 +9,6 @@
# Description: Starts the HHVM daemon
### END INIT INFO
-DAEMON=/usr/bin/hhvm
PIDFILE=/var/run/hhvm/pid
hhvm_SOCKET=/var/run/hhvm/sock
hhvm_GROUP=${hhvm_GROUP:-apache}
@@ -18,6 +17,7 @@ SYSTEM_CONFIG_FILE="/etc/hhvm/php.ini"
DAEMON_ARGS="--config ${SYSTEM_CONFIG_FILE} \
--config ${CONFIG_FILE} \
+ --user ${hhvm_GROUP} \
-vPidFile=${PIDFILE}"
do_stop () {
@@ -82,7 +82,7 @@ case "$1" in
fi
echo
- $DAEMON --mode daemon $DAEMON_ARGS
+ /usr/bin/hhvm --mode daemon $DAEMON_ARGS
if [ "$?" != 0 ]
then
echo "Failed"