cleaned up systemd timer

This commit is contained in:
Matthew Saunders Brown 2022-03-28 09:50:13 -07:00
parent 83e5631b03
commit 1c52d5c290
3 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -8,6 +8,3 @@ Description=WP CLI cron
[Service]
Type=simple
ExecStart=/usr/local/sbin/wp-cron.sh
[Install]
WantedBy=multi-user.target

View File

@ -10,4 +10,4 @@ OnCalendar=*:0/15
Unit=wp-cron.service
[Install]
WantedBy=multi-user.target
WantedBy=timers.target