This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#### - log function - #### | |
function logoutput { | |
case $output in | |
t) | |
echo "$(date): $1" | |
;; | |
b) | |
echo "$(date): $1" | |
echo "$(date): $1" >> var/log/syncmagento.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "HHVM auto start and respawn" | |
author "Jonathan Hussey <[email protected]>" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
exec /usr/bin/hhvm --config /etc/hhvm/php.ini --config /etc/hhvm/server.ini --user www-data --mode daemon -vPidFile=/var/run/hhvm/pid |