feat: include clean-up and update-check services
This commit is contained in:
parent
caed15d641
commit
4c1cfcfca9
2 changed files with 20 additions and 0 deletions
12
usr/lib/lib/systemd/system/akshara-update-cleanup.service
Normal file
12
usr/lib/lib/systemd/system/akshara-update-cleanup.service
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Clean-up following system update
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=no
|
||||
User=root
|
||||
ExecStart=/usr/bin/find / -maxdepth 1 -type d -name '.old.*' -exec /usr/bin/rm -rf -- {} +
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
8
usr/lib/lib/systemd/user/akshara-update-check.service
Normal file
8
usr/lib/lib/systemd/user/akshara-update-check.service
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=System updates
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/system update-check
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue