..
This commit is contained in:
11
systemd/reminder-rs-clean-old.service
Normal file
11
systemd/reminder-rs-clean-old.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Clean old data from Reminder Bot
|
||||
|
||||
[Service]
|
||||
User=reminder
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/reminder-rs clean
|
||||
WorkingDirectory=/etc/reminder-rs
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
9
systemd/reminder-rs-clean-old.timer
Normal file
9
systemd/reminder-rs-clean-old.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Clean reminder data twice daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 0/8
|
||||
Unit=reminder-rs-clean-old.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user