File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,19 @@ jobs:
135135 fi
136136 sudo apt-get install -y "${pkgs[@]}"
137137
138+ - name : Exercise systemd service
139+ run : |
140+ set -euo pipefail
141+ sudo systemctl daemon-reload
142+ sudo systemctl enable --now rtpproxy.socket
143+ sudo systemctl start rtpproxy.service
144+ sudo systemctl status --no-pager rtpproxy.service
145+ sudo systemctl restart rtpproxy.service
146+ sudo systemctl status --no-pager rtpproxy.service
147+ sudo systemctl stop rtpproxy.service
148+ sudo systemctl status --no-pager rtpproxy.service || true
149+ sudo systemctl disable --now rtpproxy.socket
150+
138151 - name : Setup GitHub Actions artifact client
139152 uses : lhotari/gh-actions-artifact-client@v2
140153
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ rtpproxy (3.1+dev1) unstable; urgency=medium
2222 service runs under a locked-down account by default.
2323 * Align the packaged systemd unit with /run paths so PID tracking stays
2424 consistent with RuntimeDirectory management.
25+ * Pass systemd's MAINPID through ExecStart so the daemon receives the
26+ tracked PID even when launched under socket activation.
2527
2628 -- Maxim Sobolev <
[email protected] > Wed, 15 May 2024 00:00:00 +0000
2729
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ EnvironmentFile=-/etc/sysconfig/rtpproxy
1111PIDFile =/run/rtpproxy/rtpproxy.pid
1212RuntimeDirectory =rtpproxy
1313RuntimeDirectoryMode =0755
14- ExecStart =/usr/bin/rtpproxy -f -s systemd: -p /run/rtpproxy/rtpproxy.pid $OPTIONS
14+ ExecStart =/usr/bin/rtpproxy -f -s systemd:$MAINPID -p /run/rtpproxy/rtpproxy.pid $OPTIONS
1515ExecReload =/bin/kill -HUP $MAINPID
1616Restart =on-failure
1717
You can’t perform that action at this time.
0 commit comments