Add systemd service and timer

This commit is contained in:
leafee98 2025-03-24 01:12:12 +08:00
parent c091ec2e32
commit f267efa66b
2 changed files with 17 additions and 0 deletions

7
copy-cert.service Normal file
View file

@ -0,0 +1,7 @@
[Unit]
Description=Copy certificates to needed location
[Service]
Type=oneshot
ExecStart=/usr/local/bin/copy-cert.py

10
copy-cert.timer Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=Copy certificates to needed location
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target