Feat: Add StartPre backup notify
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=notify-send "Backup starts"
|
||||
ExecStart=/etc/backups/run.sh
|
||||
ExecStopPost=-bash -c '[[ $EXIT_STATUS == 0 ]] && notify-send "Backup finished: Drive can be removed."'
|
||||
ExecStopPost=-bash -c '[[ $EXIT_STATUS != 0 ]] && notify-send "Backup failed." -u critical'
|
||||
|
||||
Reference in New Issue
Block a user