Skip to content

Commit 2d355bb

Browse files
authored
Merge pull request #204 from sipcapture/WIP-patch-service
provide service in package
2 parents 78c3e1d + 33650fa commit 2d355bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/heplify.service

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ Description=Captures packets from wire and sends them to Homer
88
After=network.target
99

1010
[Service]
11-
WorkingDirectory=/opt/heplify
12-
ExecStart=/opt/heplify/heplify -i any -t af_packet -m SIPRTCP
11+
ExecStart=/usr/local/bin/heplify -i any -t af_packet -m SIPRTCP
1312
ExecStop=/bin/kill ${MAINPID}
1413
Restart=on-failure
1514
RestartSec=10s
1615
Type=simple
1716

1817
[Install]
19-
WantedBy=multi-user.target
18+
WantedBy=multi-user.target

example/heplify.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ license: "AGPLv3"
1818
bindir: "/usr/local/bin"
1919
files:
2020
/tmp/pkg/heplify: "/usr/local/bin/heplify"
21-
#config_files:
21+
config_files:
22+
/tmp/pkg/example/heplify.service: "/lib/systemd/system/heplify.service"
2223
# /tmp/pkg/etc/heplify.toml: "/opt/heplify/heplify.toml"
2324
#overrides:
2425
# rpm:

0 commit comments

Comments
 (0)