2015-05-14 14:20:30 +00:00
|
|
|
# transmet: link storage server
|
|
|
|
#
|
|
|
|
# upstart init script
|
|
|
|
|
|
|
|
description "transmet link storage"
|
|
|
|
author "Dan Ballard"
|
|
|
|
|
|
|
|
start on (net-device-up
|
|
|
|
and local-filesystems
|
2015-10-31 17:32:50 +00:00
|
|
|
and net-device-up IFACE!=lo
|
2015-05-14 14:20:30 +00:00
|
|
|
and runlevel [2345])
|
|
|
|
stop on (runlevel [016])
|
|
|
|
|
2015-05-16 20:04:46 +00:00
|
|
|
chdir /opt/go/src/github.com/dballard/transmet
|
2015-05-14 14:20:30 +00:00
|
|
|
|
|
|
|
respawn
|
|
|
|
|
2015-10-31 17:32:50 +00:00
|
|
|
script
|
|
|
|
# sleeps are hack so that durring boot non upstart enabled postgres has a chance to turn on
|
|
|
|
sleep 2
|
|
|
|
exec /opt/go/bin/transmet --env prod
|
|
|
|
sleep 2
|
|
|
|
end script
|