mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
small changes
This commit is contained in:
parent
72208d80c6
commit
727379c237
|
|
@ -1,21 +1,21 @@
|
|||
### Start BOSWatch as a daemon
|
||||
|
||||
## Changing the init script
|
||||
##### Changing the init script
|
||||
|
||||
Lines 14 and 15 define where to find the Python script.
|
||||
In this case the script expects that there is a folder `/usr/local/bin/BOSWatch` and that the script is inside there.
|
||||
|
||||
Line 23 sets what user to run the script as. Using root is generally not a good idea but might be necessary for BOSWatch.
|
||||
Line 23 sets what user to run the script as. Using a root-user is necessary for BOSWatch.
|
||||
|
||||
Line 19 sets the parameters for BOSWatch, use the same as starting BOSWatch from the shell.
|
||||
We recommend to use "-u" and "-q" when you want to run BOSWatch as a daemon.
|
||||
- "-u": You will find the logfiles in `/var/log/BOSWatch`
|
||||
- "-q": Shows no information. Only logfiles
|
||||
|
||||
## Using the init script
|
||||
##### Using the init script
|
||||
|
||||
To actually use this script, put your Python script where you want (recommend `/usr/local/bin/BOSWatch`)
|
||||
and make sure it is executable (e.g. `sudo chmod 755 boswatch.py`)
|
||||
and make sure it is executable (e.g. `sudo chmod 755 boswatch.py`).
|
||||
Edit the init script accordingly. Copy the init script 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.
|
||||
|
||||
|
|
@ -25,4 +25,4 @@ check its status with the `sudo /etc/init.d/boswatch.sh status` argument and sto
|
|||
To make the Raspberry Pi use your init script at the right time, one more step is required:
|
||||
Running the command `sudo update-rc.d boswatch.sh defaults`.
|
||||
This command adds in symbolic links to the `/etc/rc.x` directories so that the init script is run at the default times.
|
||||
You can see these links if you do ls -l /etc/rc?.d/*myservice.sh
|
||||
You can see these links if you do ls -l /etc/rc?.d/*boswatch.sh
|
||||
Loading…
Reference in a new issue