Skip to content

Commit 7519836

Browse files
committed
Add systemd file
1 parent e9ef260 commit 7519836

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ To start pim-dm process in background, one can use
6363
```
6464
or run it with a daemonizing tool (systemd, supervisord, OpenRC ...).
6565

66+
For systemd you can simply run
67+
```
68+
sudo systemd-run pim-dm -start
69+
```
70+
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:
71+
```
72+
sudo systemctl start pim-dm
73+
```
74+
6675

6776
#### Multi daemon support
6877

daemon/pim-dm.service

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Multicast routing daemon
3+
#ConditionPathExists=/etc/pim-dm/conf.yaml
4+
5+
[Service]
6+
#WorkingDirectory=/etc/pim-dm
7+
#ExecStart=/usr/local/bin/pim-dm -config conf.yaml
8+
ExecStart=/usr/local/bin/pim-dm -start
9+
ExecStop=/usr/local/bin/pim-dm -stop
10+

0 commit comments

Comments
 (0)