Skip to content

Commit 9fded91

Browse files
committed
Ensure systemd socket activation works for manual service starts
1 parent d33f4f9 commit 9fded91

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

debian/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ rtpproxy (3.1+dev1) unstable; urgency=medium
2525
* Keep ExecStart's pidfile flag pointed at /run/rtpproxy/rtpproxy.pid
2626
because the MAINPID environment variable is not available at start
2727
time.
28+
* Require and attach the rtpproxy.socket unit so manual service starts
29+
still receive the systemd-passed control socket descriptors.
2830

2931
-- Maxim Sobolev <sobomax@sippysoft.com> Wed, 15 May 2024 00:00:00 +0000
3032

rpm/rtpproxy.service

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[Unit]
22
Description=RTPProxy media relay
33
Documentation=man:rtpproxy(8)
4-
After=network.target
4+
Requires=rtpproxy.socket
5+
After=network.target rtpproxy.socket
56

67
[Service]
78
Type=notify
89
User=rtpproxy
910
Group=rtpproxy
1011
EnvironmentFile=-/etc/sysconfig/rtpproxy
12+
Sockets=rtpproxy.socket
1113
PIDFile=/run/rtpproxy/rtpproxy.pid
1214
RuntimeDirectory=rtpproxy
1315
RuntimeDirectoryMode=0755

0 commit comments

Comments
 (0)