[Unit]Description=Cockpit Web ServiceDocumentation=man:cockpit-ws(8)Requires=cockpit.socketRequires=cockpit-wsinstance-http.socket cockpit-wsinstance-https-factory.socket# we need to start after the sockets so that we can instantly forward incoming requestsAfter=cockpit-wsinstance-http.socket cockpit-wsinstance-https-factory.socket[Service]RuntimeDirectory=cockpit/tlsExecStartPre=+@libexecdir@/cockpit-certificate-ensure --for-cockpit-tlsExecStart=@libexecdir@/cockpit-tlsDynamicUser=yes# otherwise systemd uses 'cockpit' even if it exists as a normal user accountUser=cockpit-systemd-serviceGroup=cockpit-wsinstance-socketNoNewPrivileges=yesProtectSystem=strictPrivateDevices=yesProtectKernelTunables=yesMemoryDenyWriteExecute=yes# cockpit-tls speaks to the outside world via socket activation, and to cockpit-ws via Unix socketPrivateIPC=yesPrivateNetwork=yesRestrictAddressFamilies=AF_UNIX