From: Edward Delaporte Date: Sun, 5 Apr 2026 07:01:15 +0000 (-0500) Subject: Add SD as a service X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/18e4eb735fbf1733c76aa38022a7d9b3aac6f3d2?ds=sidebyside Add SD as a service --- diff --git a/files/autostart/sd.service b/files/autostart/sd.service new file mode 100755 index 0000000..c49ea83 --- /dev/null +++ b/files/autostart/sd.service @@ -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 index 0000000..5283a4d --- /dev/null +++ b/install/sd.service.sh @@ -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