fixed init script
This commit is contained in:
parent
04a6bb5c22
commit
ffb4869020
12
README.md
12
README.md
@ -284,17 +284,19 @@ Create a file in `$ /etc/init.d/` called meshenger and paste the script below:
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
#meshenger startup script
|
#meshenger startup script
|
||||||
|
|
||||||
START=10
|
START=101
|
||||||
STOP=15
|
#STOP=15
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo starting Meshenger
|
echo 'starting Meshenger'
|
||||||
python ~/meshenger/main.py &
|
/usr/bin/python /root/meshenger/main.py &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
killall python
|
echo 'Killing Meshenger'
|
||||||
|
killall python
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Make the file executable
|
Make the file executable
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
#meshenger startup script
|
#meshenger startup script
|
||||||
|
|
||||||
START=10
|
START=101
|
||||||
STOP=15
|
#STOP=15
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo 'starting Meshenger'
|
echo 'starting Meshenger'
|
||||||
python ~/meshenger/main.py &
|
/usr/bin/python /root/meshenger/main.py &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo 'Killing Meshenger'
|
echo 'Killing Meshenger'
|
||||||
killall python
|
killall python
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user