Skip to content

Commit

Permalink
Add systemd file
Browse files Browse the repository at this point in the history
  • Loading branch information
leoplo committed Apr 4, 2022
1 parent 8645c0b commit 28626f6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,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

Expand Down
10 changes: 10 additions & 0 deletions daemon/pim-dm.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[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

0 comments on commit 28626f6

Please sign in to comment.