mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-10-05 04:57:21 +02:00
initial commit of brew-update-user.{service,timer}
This commit is contained in:
parent
3dedc39c8d
commit
61406c9c98
7
etc/systemd/user/brew-update-user.service
Normal file
7
etc/systemd/user/brew-update-user.service
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Install linuxbrew updates
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStartPre=/usr/local/bin/brew update
|
||||||
|
ExecStart=/usr/local/bin/brew upgrade
|
15
etc/systemd/user/brew-update-user.timer
Normal file
15
etc/systemd/user/brew-update-user.timer
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Install homebrew updates regularly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
#OnCalendar=*-*-* 19:00:00
|
||||||
|
# Executed every 4 hours
|
||||||
|
OnUnitActiveSec=4h
|
||||||
|
# Executed 5 minutes from boot
|
||||||
|
OnBootSec=300
|
||||||
|
# Delay execution by something between 0 seconds and 3 hours
|
||||||
|
RandomizedDelaySec=3h
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user