diff --git a/README.md b/README.md index 657a380a..78147a33 100644 --- a/README.md +++ b/README.md @@ -277,27 +277,31 @@ WARNING: RTSP is a plain protocol, and the credentials can be intercepted and re Systemd is the service manager used by Ubuntu, Debian and many other Linux distributions, and allows to launch rtsp-simple-server on boot. -Download a release bundle from the [release page](https://github.com/aler9/rtsp-simple-server/releases), and put: +Download a release bundle from the [release page](https://github.com/aler9/rtsp-simple-server/releases), unzip it, and move the executable and configuration in the system: -* `rtsp-simple-server` in `/usr/local/bin` -* `rtsp-simple-server.yml` in `/usr/local/etc` +``` +sudo mv rtsp-simple-server /usr/local/bin/ +sudo mv rtsp-simple-server.yml /usr/local/etc/ +``` -Create a file `/etc/systemd/system/rtsp-simple-server.service` with the following content: +Create the service: ``` +sudo tee /etc/systemd/system/rtsp-simple-server.service >/dev/null << EOF [Unit] After=network.target [Service] ExecStart=/usr/local/bin/rtsp-simple-server /usr/local/etc/rtsp-simple-server.yml [Install] WantedBy=multi-user.target +EOF ``` -Enable and start the service with: +Enable and start the service: ``` -systemctl enable rtsp-simple-server -systemctl start rtsp-simple-server +sudo systemctl enable rtsp-simple-server +sudo systemctl start rtsp-simple-server ``` ### Monitoring @@ -373,7 +377,7 @@ Install Go ≥ 1.15, download the repository, open a terminal in it and run: go run . ``` -You can perform the entire operation inside Docker with: +You can perform the entire operation inside Docker: ``` make run