summaryrefslogtreecommitdiff
path: root/.config/systemd/user/local-ai.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/local-ai.service')
-rw-r--r--.config/systemd/user/local-ai.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/systemd/user/local-ai.service b/.config/systemd/user/local-ai.service
new file mode 100644
index 0000000..b62c2c3
--- /dev/null
+++ b/.config/systemd/user/local-ai.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Local AI Podman Compose Stack
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+WorkingDirectory=%h/projects/local-ai
+
+ExecStart=/usr/bin/podman-compose up -d
+ExecStop=/usr/bin/podman-compose down
+
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=default.target