]> apps.delaporte.us Git - dotfiles.git/commitdiff
Fixes
authorEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:15:08 +0000 (02:15 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:15:08 +0000 (02:15 -0500)
files/autostart/sd.service
install/sd.service.sh
run/sd.sh

index c49ea83ecf52d49d904a5f758a9c0d7baf590c8a..81e9e7fa7b4cf1a39523a589abc34d9b46156052 100755 (executable)
@@ -4,7 +4,6 @@ Description=Stable Diffusion
 [Service]
 ExecStart=%h/dotfiles/run/sd.sh
 Type=exec
 [Service]
 ExecStart=%h/dotfiles/run/sd.sh
 Type=exec
-Restart=always
 
 [Install]
 WantedBy=multi-user.target
 
 [Install]
 WantedBy=multi-user.target
index 5283a4dcd04b01b1878ab27fea9dcc3f76ba3c57..7f1de191c9a93508d9590e7d346b9b06b339f57e 100755 (executable)
@@ -4,4 +4,6 @@ ln -s ~/dotfiles/files/autostart/sd.service ~/.config/systemd/user/
 ls -al ~/.config/systemd/user
 systemctl --user daemon-reload
 systemctl --user enable sd.service
 ls -al ~/.config/systemd/user
 systemctl --user daemon-reload
 systemctl --user enable sd.service
+# SD_DIR is used by run/sd.sh
+systemctl --user import-environment SD_DIR
 systemctl --user status sd.service
 systemctl --user status sd.service
index 2947fffd8bc5c806ab1600ae4454966499271a16..747a5dface793477c900b07e5bdf77b73c0905ae 100755 (executable)
--- a/run/sd.sh
+++ b/run/sd.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/usr/bin/env bash
 source $HOME/envs/sd/bin/activate
 cd $SD_DIR;$SD_DIR/webui.sh --listen
 # Note: Simplest way to setup HTTPS is to run once with --enable-insecure-extension-access and search and install an 'https' extension.
 source $HOME/envs/sd/bin/activate
 cd $SD_DIR;$SD_DIR/webui.sh --listen
 # Note: Simplest way to setup HTTPS is to run once with --enable-insecure-extension-access and search and install an 'https' extension.