From 431d30d0071b0b7d25e3f02c72ace3ae2e42d78a Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 28 Mar 2022 09:47:01 -0700 Subject: [PATCH] cleaned up systemd timer --- install.sh | 2 +- systemd/rc-cron.service | 5 +---- systemd/rc-cron.timer | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 4ef0616..da08a83 100644 --- a/install.sh +++ b/install.sh @@ -76,7 +76,7 @@ cp sbin/rc-cron.sh /usr/local/sbin/ chmod 755 /usr/local/sbin/rc-cron.sh cp systemd/rc-cron.* /usr/lib/systemd/system/ chmod 644 /usr/lib/systemd/system/rc-cron.* -systemctl daemon-reload +systemctl enable rc-cron.timer systemctl start rc-cron.timer echo "Roundcube webmail installed." diff --git a/systemd/rc-cron.service b/systemd/rc-cron.service index 0e097c2..46dc8d0 100644 --- a/systemd/rc-cron.service +++ b/systemd/rc-cron.service @@ -3,11 +3,8 @@ # MIT License Copyright (c) 2021 Matthew Saunders Brown # [Unit] -Description=Roundcube cron +Description=Roundcube cron for cleaning up db [Service] Type=simple ExecStart=/usr/local/sbin/rc-cron.sh - -[Install] -WantedBy=multi-user.target diff --git a/systemd/rc-cron.timer b/systemd/rc-cron.timer index e4572d2..21d366a 100644 --- a/systemd/rc-cron.timer +++ b/systemd/rc-cron.timer @@ -11,4 +11,4 @@ Unit=rc-cron.service AccuracySec=6h [Install] -WantedBy=multi-user.target +WantedBy=timers.target