From cf94b48a424b776ddb49e6850b79b076e57731a5 Mon Sep 17 00:00:00 2001 From: Oliver Gwyther Date: Tue, 1 Apr 2025 20:31:05 +0100 Subject: [PATCH] Create sd-webui.service.sh --- stable-diffusion/sd-webui.service.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 stable-diffusion/sd-webui.service.sh 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