Skip to content

Instantly share code, notes, and snippets.

@WganMe
Created January 2, 2017 16:05
Show Gist options
  • Save WganMe/d0f48a5abae6ab3b798deac3c5695f4c to your computer and use it in GitHub Desktop.
Save WganMe/d0f48a5abae6ab3b798deac3c5695f4c to your computer and use it in GitHub Desktop.
cat /usr/lib/systemd/system/hhvm.service
[Unit]
Description=HipHop Virtual Machine
[Service]
PIDFile=/var/run/hhvm/hhvm.pid
ExecStartPre=/bin/mkdir -p /var/log/hhvm/
ExecStartPre=/bin/chown -R nginx:nginx /var/log/hhvm/
ExecStartPre=/bin/mkdir -p /var/run/hhvm/
ExecStartPre=/bin/chown -R nginx:nginx /var/run/hhvm/
ExecStart=/usr/local/bin/hhvm -m daemon -u nginx -c /etc/hhvm/server.ini -c /etc/hhvm/php.ini -c /etc/hhvm/server.conf
ExecStop=rm /var/run/hhvm.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment