Commit 33bb72d
committed
Fix systemd socket activation support
Fix systemd socket activation with passing listening sockets.
(Seems only inetd style accept=yes systemd socket activation
was actually working previously)
Can be used with systemd units among the lines of:
x11vnc.service
==
[Unit]
Description=VNC server
Requires=x11vnc.socket
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -no6 -xkb -repeat -auth guess -display WAIT:0 -forever -shared
==
x11vnc.socket
==
[Unit]
Description=VNC server socket
[Socket]
ListenStream=5900
[Install]
WantedBy=sockets.target
==
systemctl enable x11vnc.socket
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>1 parent 0b89907 commit 33bb72d
1 file changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
187 | 205 | | |
| 206 | + | |
188 | 207 | | |
189 | 208 | | |
190 | 209 | | |
| |||
0 commit comments