diff --git a/example/heplify.service b/example/heplify.service index 10e0dfb..f92368f 100644 --- a/example/heplify.service +++ b/example/heplify.service @@ -8,12 +8,11 @@ Description=Captures packets from wire and sends them to Homer After=network.target [Service] -WorkingDirectory=/opt/heplify -ExecStart=/opt/heplify/heplify -i any -t af_packet -m SIPRTCP +ExecStart=/usr/local/bin/heplify -i any -t af_packet -m SIPRTCP ExecStop=/bin/kill ${MAINPID} Restart=on-failure RestartSec=10s Type=simple [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/example/heplify.yaml b/example/heplify.yaml index 87de12a..196ea16 100644 --- a/example/heplify.yaml +++ b/example/heplify.yaml @@ -18,7 +18,8 @@ license: "AGPLv3" bindir: "/usr/local/bin" files: /tmp/pkg/heplify: "/usr/local/bin/heplify" -#config_files: +config_files: + /tmp/pkg/example/heplify.service: "/lib/systemd/system/heplify.service" # /tmp/pkg/etc/heplify.toml: "/opt/heplify/heplify.toml" #overrides: # rpm: