diff --git a/README.md b/README.md index df5e693..867712a 100644 --- a/README.md +++ b/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 #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 diff --git a/lazyinstall/meshenger b/lazyinstall/meshenger index 83eff40..4b168c2 100755 --- a/lazyinstall/meshenger +++ b/lazyinstall/meshenger @@ -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 } -