Browse Source

systemd unit

main
Hendrik Langer 4 years ago
parent
commit
d8f1037625
  1. 25
      README.md

25
README.md

@ -59,6 +59,8 @@ https://github.com/thaytan/gst-rpicamsrc/blob/master/examples/webrtc-unidirectio
https://github.com/centricular/gstwebrtc-demos/blob/master/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c https://github.com/centricular/gstwebrtc-demos/blob/master/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c
https://gitlab.freedesktop.org/gstreamer/gst-examples/-/blob/master/webrtc/multiparty-sendrecv/gst-rust/src/main.rs https://gitlab.freedesktop.org/gstreamer/gst-examples/-/blob/master/webrtc/multiparty-sendrecv/gst-rust/src/main.rs
https://github.com/aiortc/aiortc/blob/main/examples/webcam/webcam.py
## nginx.conf ## nginx.conf
``` ```
@ -116,3 +118,26 @@ server {
} }
``` ```
## /etc/systemd/system/roberto.service
```
[Unit]
Description=Roberto Python
Wants=network.target
[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/home/pi/roberto
ExecStart=/usr/bin/env /home/pi/roberto/raspberry/roberto.py
Restart=on-failure
[Install]
WantedBy=multi-user.target
```
chmod a+x /home/pi/roberto/raspberry/roberto.py
systemctl daemon-reload
systemctl enable roberto
systemctl start roberto

Loading…
Cancel
Save