... | ... | @@ -48,13 +48,37 @@ cp utilities/lutim.service /etc/systemd/system/ |
|
|
vim /etc/systemd/system/lutim.service
|
|
|
```
|
|
|
|
|
|
You need to change `User`, `WorkingDirectory` and `PIDFile` in `/etc/systemd/system/lutim.service` to fit your installation. Then:
|
|
|
You need to change `User`, `WorkingDirectory` and `PIDFile` in `/etc/systemd/system/lutim.service` to fit your installation. Uncomment the part about `postgresql.service` if you want to use Lutim with PostgreSQL. Then:
|
|
|
|
|
|
```
|
|
|
systemctl daemon-reload
|
|
|
systemctl enable lutim.service
|
|
|
systemctl start lutim.service
|
|
|
```
|
|
|
|
|
|
If you want to use Lutim with Minion:
|
|
|
```
|
|
|
cp utilities/lutim-minion@.service /etc/systemd/system/
|
|
|
vim /etc/systemd/system/lutim-minion@.service
|
|
|
```
|
|
|
|
|
|
Same thing, you need to do somes change: `User` and `WorkingDirectory`.
|
|
|
|
|
|
```
|
|
|
systemctl daemon-reload
|
|
|
systemctl enable lutim-minion@1.service
|
|
|
systemctl start lutim-minion@1.service
|
|
|
```
|
|
|
|
|
|
What do you put after the `@` does not matter. A template service like this allows you to add as many worker as you need (if one worker is not enough to process the job queue):
|
|
|
|
|
|
```
|
|
|
systemctl enable lutim-minion@2.service
|
|
|
systemctl start lutim-minion@2.service
|
|
|
```
|
|
|
|
|
|
And so on…
|
|
|
|
|
|
### Upstart
|
|
|
|
|
|
```
|
... | ... | |