diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-07-21 15:18:02 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-07-21 15:18:02 +0200 |
commit | 0b6005c830b1e949f3a64391c8451d9651c1574a (patch) | |
tree | 688e174b1641506912d0e97f4741a03b1df95d02 /turtetris/files/master.init | |
parent | f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df (diff) | |
download | turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.tar.gz turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.tar.bz2 turris-myrepo-0b6005c830b1e949f3a64391c8451d9651c1574a.zip |
Add turtetris
Diffstat (limited to 'turtetris/files/master.init')
-rwxr-xr-x | turtetris/files/master.init | 15 |
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 +} |