add service file

This commit is contained in:
ccppi_production 2024-09-16 10:02:59 +00:00
parent b5be668c22
commit a723e0ba83
2 changed files with 5 additions and 2 deletions

View File

@ -8,3 +8,6 @@ uninstall:
sudo rm /usr/local/bin/systemd-gotify
rm $${HOME}/.config/systemd-gotify/config
rm $${HOME}/.config/systemd-gotify/ -r
service-files:
mkdir -p $${HOME}/.config/systemd/user/
cp -i ./systemd-gotify.service $${HOME}/.config/systemd/user/systemd-gotify.service

View File

@ -3,8 +3,8 @@ Description=Check for running systemd daemons and send notification to gotify
User=ccppi
[Service]
WorkingDirectory=/home/ccppi/Programming/systemd-gotify/
ExecStart=/home/ccppi/Programming/systemd-gotify/a.out config config
Environment="GOTIFY_TOKEN=AnV26OM_KjPdvY9"
ExecStart=/usr/local/bin/systemd-gotify config -d
[Install]
WantedBy=multi-user.target