cleaned up systemd timer

This commit is contained in:
Matthew Saunders Brown 2022-03-28 09:47:01 -07:00
parent 52d4f45849
commit 431d30d007
3 changed files with 3 additions and 6 deletions

View File

@ -76,7 +76,7 @@ cp sbin/rc-cron.sh /usr/local/sbin/
chmod 755 /usr/local/sbin/rc-cron.sh chmod 755 /usr/local/sbin/rc-cron.sh
cp systemd/rc-cron.* /usr/lib/systemd/system/ cp systemd/rc-cron.* /usr/lib/systemd/system/
chmod 644 /usr/lib/systemd/system/rc-cron.* chmod 644 /usr/lib/systemd/system/rc-cron.*
systemctl daemon-reload systemctl enable rc-cron.timer
systemctl start rc-cron.timer systemctl start rc-cron.timer
echo "Roundcube webmail installed." echo "Roundcube webmail installed."

View File

@ -3,11 +3,8 @@
# MIT License Copyright (c) 2021 Matthew Saunders Brown # MIT License Copyright (c) 2021 Matthew Saunders Brown
# #
[Unit] [Unit]
Description=Roundcube cron Description=Roundcube cron for cleaning up db
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/local/sbin/rc-cron.sh ExecStart=/usr/local/sbin/rc-cron.sh
[Install]
WantedBy=multi-user.target

View File

@ -11,4 +11,4 @@ Unit=rc-cron.service
AccuracySec=6h AccuracySec=6h
[Install] [Install]
WantedBy=multi-user.target WantedBy=timers.target