From 8b0990bf3f0e2dffec5fb56c2602aabfe87f542c Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 5 Apr 2026 02:59:50 -0500 Subject: [PATCH 1/1] Add systemd for Cadbury --- files/autostart/cadbury.service | 9 +++++++++ install/cadbury.service.sh | 8 ++++++++ run/cadbury.sh | 1 + 3 files changed, 18 insertions(+) create mode 100755 files/autostart/cadbury.service create mode 100755 install/cadbury.service.sh 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 -- 2.47.3