From 1c52d5c2907b2cce1db245476def98fa3834bf8d Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 28 Mar 2022 09:50:13 -0700 Subject: [PATCH] cleaned up systemd timer --- install.sh | 2 +- systemd/wp-cron.service | 3 --- systemd/wp-cron.timer | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 868a66a..be7e0bb 100755 --- a/install.sh +++ b/install.sh @@ -23,5 +23,5 @@ cp sbin/wp-cron.sh /usr/local/sbin/ chmod 755 /usr/local/sbin/wp-cron.sh cp systemd/wp-cron.* /usr/lib/systemd/system/ chmod 644 /usr/lib/systemd/system/wp-cron.* -systemctl daemon-reload +systemctl enable wp-cron.timer systemctl start wp-cron.timer diff --git a/systemd/wp-cron.service b/systemd/wp-cron.service index 382f81b..5775214 100644 --- a/systemd/wp-cron.service +++ b/systemd/wp-cron.service @@ -8,6 +8,3 @@ Description=WP CLI cron [Service] Type=simple ExecStart=/usr/local/sbin/wp-cron.sh - -[Install] -WantedBy=multi-user.target diff --git a/systemd/wp-cron.timer b/systemd/wp-cron.timer index 2a1c277..c77c054 100644 --- a/systemd/wp-cron.timer +++ b/systemd/wp-cron.timer @@ -10,4 +10,4 @@ OnCalendar=*:0/15 Unit=wp-cron.service [Install] -WantedBy=multi-user.target +WantedBy=timers.target