Skip to content

Instantly share code, notes, and snippets.

@darklinden
Created July 20, 2023 03:00
Show Gist options
  • Save darklinden/498ab415b2a9d7da834384f763a99ef0 to your computer and use it in GitHub Desktop.
Save darklinden/498ab415b2a9d7da834384f763a99ef0 to your computer and use it in GitHub Desktop.
Start Service For stable-diffusion-webui
# /etc/systemd/system/sd-webui.service
[Service]
ExecStart=/bin/bash /home/ubuntu/stable-diffusion-webui/webui.sh --listen --api
Restart=always
WorkingDirectory=/home/ubuntu/stable-diffusion-webui
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sd-webui
User=ubuntu
[Install]
WantedBy=multi-user.target
# usage
#
# sudo mv sd-webui.service /etc/systemd/system/sd-webui.service
# sudo systemctl start sd-webui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment