Commit 6cd91ede authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Add systemd file

parent 268a1d95
......@@ -65,6 +65,15 @@ To start pim-dm process in background, one can use
```
or run it with a daemonizing tool (systemd, supervisord, OpenRC ...).
For systemd you can simply run
```
sudo systemd-run pim-dm -start
```
or copy [pim-dm.service](daemon/pim-dm.service) to `/usr/lib/systemd/system/pim-dm.service` and then start pim-dm process with command:
```
sudo systemctl start pim-dm
```
#### Multi daemon support
......
[Unit]
Description=Multicast routing daemon
#ConditionPathExists=/etc/pim-dm/conf.yaml
[Service]
#WorkingDirectory=/etc/pim-dm
#ExecStart=/usr/local/bin/pim-dm -config conf.yaml
ExecStart=/usr/local/bin/pim-dm -start
ExecStop=/usr/local/bin/pim-dm -stop
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment