summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-06-17 01:07:10 +0300
committerKyren223 <contact@kyren.codes>2026-06-17 01:07:10 +0300
commit1d5a95a765dd722faf195b319cec5a9e9672e60a (patch)
tree0eda64aa01ad0a0531fe5ab0cae1771e5b07517b /.config
parent0e02cb21f04c31ee60973db74118b02b1f165eb3 (diff)
Autostart local AI container
Diffstat (limited to '.config')
l---------.config/systemd/user/default.target.wants/local-ai.service1
-rw-r--r--.config/systemd/user/local-ai.service17
2 files changed, 18 insertions, 0 deletions
diff --git a/.config/systemd/user/default.target.wants/local-ai.service b/.config/systemd/user/default.target.wants/local-ai.service
new file mode 120000
index 0000000..32355be
--- /dev/null
+++ b/.config/systemd/user/default.target.wants/local-ai.service
@@ -0,0 +1 @@
+/home/kyren/.config/systemd/user/local-ai.service \ No newline at end of file
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