From: Edward Delaporte Date: Sun, 5 Apr 2026 07:59:50 +0000 (-0500) Subject: Add systemd for Cadbury X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/8b0990bf3f0e2dffec5fb56c2602aabfe87f542c Add systemd for Cadbury --- diff --git a/files/autostart/cadbury.service b/files/autostart/cadbury.service new file mode 100755 index 0000000..a4e1f31 --- /dev/null +++ b/files/autostart/cadbury.service @@ -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 index 0000000..2ea22fb --- /dev/null +++ b/install/cadbury.service.sh @@ -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 diff --git a/run/cadbury.sh b/run/cadbury.sh index a3737c8..b711d37 100755 --- a/run/cadbury.sh +++ b/run/cadbury.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash cd $HOME/src/matrix-cadbury;make