1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00
restic_ynh/conf/systemd.service
Lionel Coupouchetty-Ramouchetty 25e47e2cac Do not use expect anymore
2020-04-12 17:13:11 +02:00

13 lines
403 B
Desktop File

[Unit]
Description=Run backup __APP__
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup-with-__APP__
ExecStartPost=/bin/bash -c 'echo -e "Subject: YunoHost Restic backup log on $(hostname)\n$(/bin/journalctl _SYSTEMD_INVOCATION_ID=`systemctl show -p InvocationID --value __APP__.service`)" | /usr/sbin/sendmail root'
User=root
Group=root
[Install]
WantedBy=multi-user.target