aboutsummaryrefslogtreecommitdiff
path: root/turtetris/files/master.init
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-21 15:18:02 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-21 15:18:02 +0200
commit0b6005c830b1e949f3a64391c8451d9651c1574a (patch)
tree688e174b1641506912d0e97f4741a03b1df95d02 /turtetris/files/master.init
parentf091daffe7f6fcfb21c8ca2e83b4ff916b70b7df (diff)
downloadturris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.tar.gz
turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.tar.bz2
turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.zip
Add turtetris
Diffstat (limited to 'turtetris/files/master.init')
-rwxr-xr-xturtetris/files/master.init15
1 files changed, 15 insertions, 0 deletions
diff --git a/turtetris/files/master.init b/turtetris/files/master.init
new file mode 100755
index 0000000..46176c5
--- /dev/null
+++ b/turtetris/files/master.init
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2011 OpenWrt.org
+
+USE_PROCD=1
+
+START=101
+
+start_service() {
+ procd_open_instance
+ procd_set_param command python3 -m turtetris_master
+ procd_set_param respawn
+ procd_set_param stdout 1
+ procd_set_param stderr 1
+ procd_close_instance
+}