blob: 0a450d31dd5f01816ef66c6ccd3642caf3793522 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
description "Jekyll-Hook"
author "Development Seed"
# When to start / stop:
start on filesystem and net-device-up
stop on shutdown
# Automatically Respawn:
respawn
# What to do:
script
export HOME="/root"
cd /usr/local/src/jekyll-hook
node jekyll-hook.js 2>> /var/log/jekyll-hook.log
end script
post-start script
# Optionally put a script here that will notify you node has (re)started
# /root/bin/hoptoad.sh "node.js has started!"
end script
# Source: http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/
|