diff options
Diffstat (limited to 'docs/patterns/systemd.md')
-rw-r--r-- | docs/patterns/systemd.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/patterns/systemd.md b/docs/patterns/systemd.md index a9a3aec..b313b6d 100644 --- a/docs/patterns/systemd.md +++ b/docs/patterns/systemd.md @@ -12,7 +12,7 @@ To run multiple workers under systemd, you'll first need to create a unit file. We can name this file `rqworker@.service`, put this file in `/etc/systemd/system` directory (location may differ by what distributions you run). -{% highlight ini %} +``` [Unit] Description=RQ Worker Number %i After=network.target @@ -31,7 +31,7 @@ Restart=always [Install] WantedBy=multi-user.target -{% endhighlight %} +``` If your unit file is properly installed, you should be able to start workers by invoking `systemctl start rqworker@1.service`, `systemctl start rqworker@2.service` |