Compare commits
1 Commits
v1.0
...
e498990393
| Author | SHA1 | Date | |
|---|---|---|---|
| e498990393 |
21
README.md
21
README.md
@@ -1,3 +1,22 @@
|
|||||||
# sprinkle-worker
|
# sprinkle-worker
|
||||||
|
|
||||||
"Background" worker sprinkle for userfrosting
|
"Background" worker sprinkle for userfrosting
|
||||||
|
|
||||||
|
The following snippit creates a single worker thread for processing tasks:
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=UserFrosting workers service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
|
Type=simple
|
||||||
|
PIDFile=/run/uf-workers.pid
|
||||||
|
ExecStart=php bakery worker:run --quiet
|
||||||
|
WorkingDirectory=/srv/UserFrosting
|
||||||
|
User=www-data
|
||||||
|
Group=www-data
|
||||||
|
SyslogIdentifier=UF-worker
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user