[Unit] # Implicit needs are explicitly needed to survive shutdown till stop finishes After=network.target Description=Valheim server [Service] ExecStart=/usr/local/bin/vh-start ExecReload=/bin/kill -s HUP $MAINPID KillSignal=SIGINT User=vhadmin WorkingDirectory=/home/vhadmin Restart=on-failure StandardOutput=journal StandardError=journal Type=simple # security PrivateUsers=true ProtectHome=true ProtectControlGroups=true ProtectKernelModules=true ProtectKernelTunables=true ProtectSystem=full [Install] WantedBy=multi-user.target