fixed init script

This commit is contained in:
Roel 2014-05-28 23:35:01 +02:00
parent 04a6bb5c22
commit ffb4869020
2 changed files with 10 additions and 9 deletions

View File

@ -284,17 +284,19 @@ Create a file in `$ /etc/init.d/` called meshenger and paste the script below:
#!/bin/sh /etc/rc.common
#meshenger startup script
START=10
STOP=15
START=101
#STOP=15
start() {
echo starting Meshenger
python ~/meshenger/main.py &
echo 'starting Meshenger'
/usr/bin/python /root/meshenger/main.py &
}
stop() {
killall python
echo 'Killing Meshenger'
killall python
}
```
Make the file executable

View File

@ -1,16 +1,15 @@
#!/bin/sh /etc/rc.common
#meshenger startup script
START=10
STOP=15
START=101
#STOP=15
start() {
echo 'starting Meshenger'
python ~/meshenger/main.py &
/usr/bin/python /root/meshenger/main.py &
}
stop() {
echo 'Killing Meshenger'
killall python
}