diff --git a/stable-diffusion/sd-webui.service.sh b/stable-diffusion/sd-webui.service.sh new file mode 100644 index 0000000..9fcbafd --- /dev/null +++ b/stable-diffusion/sd-webui.service.sh @@ -0,0 +1,19 @@ +# /etc/systemd/system/sd-webui.service + +[Service] + +ExecStart=/bin/bash /home/oliver/stable-diffusion-webui/webui.sh +Restart=always +WorkingDirectory=/home/oliver/stable-diffusion-webui +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=sd-webui +User=oliver + +[Install] +WantedBy=multi-user.target + +# usage +# +# sudo mv sd-webui.service /etc/systemd/system/sd-webui.service +# sudo systemctl start sd-webui \ No newline at end of file