Skip to content

Commit

Permalink
Merge pull request #204 from sipcapture/WIP-patch-service
Browse files Browse the repository at this point in the history
provide service in package
  • Loading branch information
lmangani authored Mar 4, 2021
2 parents 78c3e1d + 33650fa commit 2d355bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions example/heplify.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
WantedBy=multi-user.target
3 changes: 2 additions & 1 deletion example/heplify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2d355bb

Please sign in to comment.