我正在尝试在 Ubuntu 13.04 服务器上为 HHVM aka Hiphop PHP 设置一个新贵,因此它在启动时启动并在意外终止时重新生成。
脚本位于:
/etc/init/hhvm.conf
这是我到目前为止所得到的:
# Upstart HHVM script
# This script will start/stop HHVM webserver
description "Start and stop the HHVM webserver (Hiphop-PHP)"
version "0.1"
author "RouteXL.com"
# Set the executable and the settings files
env RUN=/usr/share/hhvm/hiphop-php/hphp/hhvm/hhvm
env CONFIG=/etc/hhvm.hdf
# Run at startup when ready
start on (local-filesystems and net-device-up IFACE!=lo)
# Stop the webserver when server closes down
stop on runlevel [016]
# Respawn th webserver when unexpectedly stopped
respawn
# Expect the process to fork
expect fork
expect daemon
# The command to execute to start it up
exec $RUN -m server -c $CONFIG
当我输入时没有任何反应:
sudo start hhvm
怎么了?