added some systemd documentation

This commit is contained in:
wouter gordts 2019-07-04 20:32:41 +01:00
parent 19709d9db7
commit 2b557ba793
1 changed files with 30 additions and 0 deletions

View File

@ -31,6 +31,36 @@ The following OSC messages can be sent to the server.
/get/cpu
```
It's running as a systemd service with the following configuration at */etc/systemd/system/osc_server.service*.
```bash
[Unit]
Description=OSC server for puredata
After=network.target
[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/home/pi/sources/puredata/
ExecStart=/usr/bin/python3 osc_server.py
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
```
Controlling the service is done with the following commands.
```bash
sudo systemctl start osc_server.service
sudo systemctl stop osc_server.service
sudo systemctl restart osc_server.service
sudo systemctl status osc_server.service
```
# todo
* have each chapter be more verbose