summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/mythexpress/run
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-05 21:41:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-05 21:41:15 (GMT)
commitca11d1169bc90abfe0f636bcb9285f43e2bbb862 (patch)
tree6f71dcaee3c3e2ac5aaca248c9fb87f0363d9517 /abs/core/runit-scripts/runitscripts/services/mythexpress/run
parent2644df52d2262df23537438aa1e1b4294c2cd408 (diff)
downloadlinhes_pkgbuild-ca11d1169bc90abfe0f636bcb9285f43e2bbb862.zip
linhes_pkgbuild-ca11d1169bc90abfe0f636bcb9285f43e2bbb862.tar.gz
linhes_pkgbuild-ca11d1169bc90abfe0f636bcb9285f43e2bbb862.tar.bz2
runit-scripts: added mythexpress and remyth
refs #865 refs #863
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/mythexpress/run')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/mythexpress/run8
1 files changed, 8 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/mythexpress/run b/abs/core/runit-scripts/runitscripts/services/mythexpress/run
new file mode 100755
index 0000000..3e58490
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/mythexpress/run
@@ -0,0 +1,8 @@
+#!/bin/sh
+exec 2>&1
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+stat_runit "Starting MythExpress"
+su http -s/bin/bash -c "node /usr/mythexpress/app.js"
+