cleaned up systemd timer
This commit is contained in:
parent
83e5631b03
commit
1c52d5c290
|
@ -23,5 +23,5 @@ cp sbin/wp-cron.sh /usr/local/sbin/
|
||||||
chmod 755 /usr/local/sbin/wp-cron.sh
|
chmod 755 /usr/local/sbin/wp-cron.sh
|
||||||
cp systemd/wp-cron.* /usr/lib/systemd/system/
|
cp systemd/wp-cron.* /usr/lib/systemd/system/
|
||||||
chmod 644 /usr/lib/systemd/system/wp-cron.*
|
chmod 644 /usr/lib/systemd/system/wp-cron.*
|
||||||
systemctl daemon-reload
|
systemctl enable wp-cron.timer
|
||||||
systemctl start wp-cron.timer
|
systemctl start wp-cron.timer
|
||||||
|
|
|
@ -8,6 +8,3 @@ Description=WP CLI cron
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/sbin/wp-cron.sh
|
ExecStart=/usr/local/sbin/wp-cron.sh
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
|
@ -10,4 +10,4 @@ OnCalendar=*:0/15
|
||||||
Unit=wp-cron.service
|
Unit=wp-cron.service
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=timers.target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user