]> apps.delaporte.us Git - dotfiles.git/commitdiff
Add systemd for Cadbury
authorEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:59:50 +0000 (02:59 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:59:56 +0000 (02:59 -0500)
files/autostart/cadbury.service [new file with mode: 0755]
install/cadbury.service.sh [new file with mode: 0755]
run/cadbury.sh

diff --git a/files/autostart/cadbury.service b/files/autostart/cadbury.service
new file mode 100755 (executable)
index 0000000..a4e1f31
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=Cadbury Personal Organizer Matrix Bot
+
+[Service]
+ExecStart=%h/dotfiles/run/cadbury.sh
+Type=exec
+
+[Install]
+WantedBy=multi-user.target
diff --git a/install/cadbury.service.sh b/install/cadbury.service.sh
new file mode 100755 (executable)
index 0000000..2ea22fb
--- /dev/null
@@ -0,0 +1,8 @@
+ADD_SRV=cadbury
+mkdir -p ~/.config/systemd/user
+rm ~/.config/systemd/user/$ADD_SRV.service
+ln -s ~/dotfiles/files/autostart/$ADD_SRV.service ~/.config/systemd/user/
+ls -al ~/.config/systemd/user
+systemctl --user daemon-reload
+systemctl --user enable $ADD_SRV.service
+systemctl --user status $ADD_SRV.service
index a3737c8bc336202b1d93b3641e8b9ab5123cbfe3..b711d37df2000f5dc9b421a64aec7f747398f646 100755 (executable)
@@ -1 +1,2 @@
+#!/usr/bin/env bash
 cd $HOME/src/matrix-cadbury;make