mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-20 15:20:16 +01:00
Merge pull request #232 from sesu85/master
Vereinfachung beim Einrichten des Daemons
This commit is contained in:
commit
f699f65005
|
|
@ -13,6 +13,7 @@ before_script:
|
|||
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main"
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -qq wget python2.7
|
||||
|
||||
- wget https://raw.githubusercontent.com/Schrolli91/BOSWatch/${TRAVIS_BRANCH}/install.sh
|
||||
- chmod +x install.sh
|
||||
- cat /etc/os-release
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
|beta|[](https://www.codacy.com/app/Schrolli91/BOSWatch/dashboard?bid=4213030)|[](https://travis-ci.org/Schrolli91/BOSWatch)|
|
||||
|develop|[](https://www.codacy.com/app/Schrolli91/BOSWatch/dashboard?bid=3763820)|[](https://travis-ci.org/Schrolli91/BOSWatch)|
|
||||
|
||||
|
||||
**Unterstützung gesucht**
|
||||
|
||||
Zur Weiterentwicklung des Programms benötigen wir Deine Mithilfe - bitte melde dich per Issue, wenn du Anwender in einem verschlüsselten POCSAG-Netz und im (legalen) Besitz des dazugehörigen Schlüssels bist.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
bospath=/opt/boswatch
|
||||
|
||||
echo $module
|
||||
# ----------------------------------------------------------------------------------------------------------------------------------
|
||||
# base Tests
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ function exitcodefunction {
|
|||
if [ $errorcode -ne "0" ]; then
|
||||
echo "Action: $action on $module failed." >> $boswatchpath/install/setup_log.txt
|
||||
echo "Exitcode: $errorcode" >> $boswatchpath/install/setup_log.txt
|
||||
|
||||
echo ""
|
||||
echo "Action: $action on $module failed."
|
||||
echo "Exitcode: $errorcode"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ To actually use this script, put BOSWatch where you want (recommend `/usr/local/
|
|||
and make sure it is executable (e.g. `sudo chmod 755 boswatch.py`).
|
||||
Edit the init script accordingly. Copy it into /etc/init.d using e.g. `sudo cp boswatch.sh /etc/init.d`.
|
||||
Make sure the script is executable (chmod again) and make sure that it has UNIX line-endings.
|
||||
After creating this new daemon it's neccessary to do a `sudo systemctl daemon-reload` in order to make it findable.
|
||||
|
||||
At this point you should be able to start BOSWatchcd ~/srt using the command `sudo /etc/init.d/boswatch.sh start`,
|
||||
check its status with the `sudo /etc/init.d/boswatch.sh status` argument and stop it with `sudo /etc/init.d/boswatch.sh stop`.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
### END INIT INFO
|
||||
|
||||
# Change the next 3 lines to suit where you install your script and what you want to call it
|
||||
DIR=/usr/local/bin/BOSWatch
|
||||
DIR=/opt/boswatch/BOSWatch
|
||||
DAEMON=$DIR/boswatch.py
|
||||
DAEMON_NAME=boswatch
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue