]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add SD as a service
authorEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:01:15 +0000 (02:01 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:03:29 +0000 (02:03 -0500)
files/autostart/sd.service [new file with mode: 0755]
install/sd.service.sh [new file with mode: 0755]

diff --git a/files/autostart/sd.service b/files/autostart/sd.service
new file mode 100755 (executable)
index 0000000..c49ea83
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Stable Diffusion
+
+[Service]
+ExecStart=%h/dotfiles/run/sd.sh
+Type=exec
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/install/sd.service.sh b/install/sd.service.sh
new file mode 100755 (executable)
index 0000000..5283a4d
--- /dev/null
@@ -0,0 +1,7 @@
+mkdir -p ~/.config/systemd/user
+rm ~/.config/systemd/user/sd.service
+ln -s ~/dotfiles/files/autostart/sd.service ~/.config/systemd/user/
+ls -al ~/.config/systemd/user
+systemctl --user daemon-reload
+systemctl --user enable sd.service
+systemctl --user status sd.service