From: Edward Delaporte Date: Tue, 7 Apr 2026 04:03:07 +0000 (-0500) Subject: Update cadbury to a system service X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/47325dfe12f44713189dff003cd17c7e5cb6f58d Update cadbury to a system service --- diff --git a/files/autostart/cadbury.service b/files/autostart/cadbury.service deleted file mode 100755 index d88ea8c..0000000 --- a/files/autostart/cadbury.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Cadbury Personal Organizer Matrix Bot - -[Service] -ExecStart=%h/dotfiles/run/cadbury.sh -Type=exec -EnvironmentFile=%h/.env - -[Install] -WantedBy=multi-user.target diff --git a/install/cadbury.service.sh b/install/cadbury.service.sh index 016f5b1..61aeeb5 100755 --- a/install/cadbury.service.sh +++ b/install/cadbury.service.sh @@ -1,15 +1,2 @@ -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 - -# User environment variables required for Cadbury -systemctl --user import-environment MATRIX_SERVER -systemctl --user import-environment MATRIX_BOT -systemctl --user import-environment MATRIX_BOT_PWD -systemctl --user import-environment MATRIX_DATA_DIR - -systemctl --user enable $ADD_SRV.service -systemctl --user status $ADD_SRV.service +# Installs at system level for autostart +sudo $HOME/src/matrix-cadbury/service/install.sh $HOME/src/matrix-cadbury/.env