cleaned up systemd timer
This commit is contained in:
parent
52d4f45849
commit
431d30d007
|
@ -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."
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -11,4 +11,4 @@ Unit=rc-cron.service
|
||||||
AccuracySec=6h
|
AccuracySec=6h
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=timers.target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user