Boyan Rabchev
10 years ago
6 changed files with 29 additions and 10486 deletions
@ -0,0 +1,25 @@ |
|||
# cat /etc/init/transloaditapi2.conf |
|||
# http://upstart.ubuntu.com/wiki/Stanzas |
|||
|
|||
description "Transloadit.com node.js API 2" |
|||
author "kvz" |
|||
|
|||
stop on shutdown |
|||
respawn |
|||
respawn limit 20 5 |
|||
|
|||
# Max open files are @ 1024 by default. Bit few. |
|||
limit nofile 32768 32768 |
|||
|
|||
script |
|||
set -e |
|||
mkfifo /tmp/api2-log-fifo |
|||
( logger -t api2 </tmp/api2-log-fifo & ) |
|||
exec >/tmp/api2-log-fifo |
|||
rm /tmp/api2-log-fifo |
|||
exec sudo -u www-data MASTERKEY=`cat /transloadit/keys/masterkey` /transloadit/bin/server 2>&1 |
|||
end script |
|||
|
|||
post-start script |
|||
/transloadit/bin/notify.sh 'API2 Just started' |
|||
end script |
@ -0,0 +1,3 @@ |
|||
#!/usr/bin/env node
|
|||
|
|||
require("../app"); |
File diff suppressed because it is too large
Loading…
Reference in new issue