3e36f3
# /etc/systemd/system/custodia@.socket
3e36f3
3e36f3
[Unit]
3e36f3
Description=Custodia Socket for %i
3e36f3
Documentation=https://github.com/latchset/custodia
3e36f3
3e36f3
[Socket]
3e36f3
ListenStream=/var/run/custodia/%i.sock
3e36f3
Service=custodia@%i.service
3e36f3
RemoveOnStop=true
3e36f3
SocketUser=custodia
3e36f3
SocketGroup=custodia
3e36f3
SocketMode=0666
3e36f3
PassCredentials=true
3e36f3
PassSecurity=true
3e36f3
3e36f3
[Install]
3e36f3
WantedBy=sockets.target