add systemd user files

pull/1/head
earnest ma 2021-12-30 14:39:43 -05:00
parent 74e02ccf77
commit 9968962bd0
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
8 changed files with 49 additions and 0 deletions

View File

@ -1,3 +1,4 @@
alias usysctl='systemctl --user'
# From https://mastodon.xyz/@CarlCravens/105758509287927276 # From https://mastodon.xyz/@CarlCravens/105758509287927276
alias clear='clear; tput cup $LINES 0' alias clear='clear; tput cup $LINES 0'

View File

@ -0,0 +1 @@
timers.target.wants

View File

@ -0,0 +1,7 @@
[Unit]
Description=Restic backup service
OnFailure=systemd-notify@%n.service
[Service]
Type=oneshot
ExecStart=/home/earne/.dotfiles/.restic/restic-do backup

View File

@ -0,0 +1,10 @@
[Unit]
Description=Daily restic backup
[Timer]
OnBootSec=6min
OnCalendar=*-*-* 21:00:00
#Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,6 @@
[Unit]
Description=Restic backup maintenance - deleting and checking
[Service]
Type=oneshot
ExecStart=/home/earne/.dotfiles/.restic/restic-do maint

View File

@ -0,0 +1,9 @@
[Unit]
Description=Weekly restic backup maintenance - deleting and checking
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,6 @@
[Unit]
Description=Notify shell about unit failure
[Service]
Type=oneshot
ExecStart=notify-send --urgency=normal '%i failed.' 'See "systemctl --user status %i" and "journalctl --user-unit %i" for details.'

View File

@ -0,0 +1,9 @@
[Unit]
Description=UxPlay
[Service]
ExecStart=/home/earne/ghq/github.com/FDH2/UxPlay/uxplay
[Install]
WantedBy=default.target