Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b49ce8a895 |
34
README.md
34
README.md
@@ -1,3 +1,35 @@
|
|||||||
# sprinkle-scheduler
|
# sprinkle-scheduler
|
||||||
|
|
||||||
A UserFrosting sprinkle to add scheduled events
|
A UserFrosting sprinkle to add scheduled events.
|
||||||
|
|
||||||
|
Either a crontab set to run once a minute is required or a systemd timer:
|
||||||
|
|
||||||
|
Systemd service: /etc/systemd/system/uf-scheduler.service
|
||||||
|
```systemd
|
||||||
|
[Unit]
|
||||||
|
Description=UserFrosting Scheduler
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=no
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/php bakery schedule -n
|
||||||
|
WorkingDirectory=/srv/UserFrosting
|
||||||
|
User=www-data
|
||||||
|
Group=www-data
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
Systemd timer: /etc/systemd/system/uf-scheduler.timer
|
||||||
|
```systemd
|
||||||
|
[Unit]
|
||||||
|
Description=UserFrosting Scheduler trigger
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* *:*:00
|
||||||
|
Persistent=true
|
||||||
|
Unit=uf-scheduler.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user