aboutsummaryrefslogtreecommitdiff
path: root/turtetris/files
diff options
context:
space:
mode:
Diffstat (limited to 'turtetris/files')
-rwxr-xr-xturtetris/files/master.init15
-rwxr-xr-xturtetris/files/slave.init15
-rw-r--r--turtetris/files/uci3
3 files changed, 33 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
+}
diff --git a/turtetris/files/slave.init b/turtetris/files/slave.init
new file mode 100755
index 0000000..cc843ca
--- /dev/null
+++ b/turtetris/files/slave.init
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2011 OpenWrt.org
+
+USE_PROCD=1
+
+START=100
+
+start_service() {
+ procd_open_instance
+ procd_set_param command python3 -m turtetris_slave
+ procd_set_param respawn
+ procd_set_param stdout 1
+ procd_set_param stderr 1
+ procd_close_instance
+}
diff --git a/turtetris/files/uci b/turtetris/files/uci
new file mode 100644
index 0000000..d33219b
--- /dev/null
+++ b/turtetris/files/uci
@@ -0,0 +1,3 @@
+
+config 1 'line'
+