[Unit] Description=Wakapi StartLimitIntervalSec=400 StartLimitBurst=3 [Service] Type=simple WorkingDirectory=/opt/wakapi ExecStart="/opt/wakapi/wakapi" -config "/etc/wakapi.yml" # sudo groupadd wakapi # sudo useradd -g wakapi wakapi User=wakapi Group=wakapi RuntimeDirectory=wakapi # creates /run/wakapi, useful to place your socket file there Restart=on-failure RestartSec=90 # Security hardening PrivateTmp=true PrivateUsers=true NoNewPrivileges=true ProtectSystem=full ProtectHome=true ProtectKernelTunables=true ProtectKernelModules=true ProtectKernelLogs=true ProtectControlGroups=true PrivateDevices=true CapabilityBoundingSet=CAP_NET_BIND_SERVICE ProtectClock=true RestrictSUIDSGID=true ProtectHostname=true ProtectProc=invisible [Install] WantedBy=multi-user.target