Skip to content
Snippets Groups Projects
Commit 4ce41551 authored by David Trattnig's avatar David Trattnig
Browse files

First implementation of separated unit files. #21

parent acffd9be
No related branches found
No related tags found
No related merge requests found
Pipeline #812 passed
[Unit]
Description=Aura Engine - Playout Server
After=network.target
Documentation=https://gitlab.servus.at/aura/engine
Requires=aura-engine-lqs.socket
  • Maintainer

    You likely want add

    After=aura-engine-lqs.socket

    as well. See systemd manual on After=:

    Note that those settings are independent of and orthogonal to the requirement dependencies as configured by Requires=, Wants=, Requisite=, or BindsTo=. It is a common pattern to include a unit name in both the After= and Wants= options, in which case the unit listed will be started before the unit that is configured with these options.

  • Please register or sign in to reply
[Service]
Type=simple
User=engineuser
WorkingDirectory=/opt/aura/engine
ExecStart=/opt/aura/engine/run.sh core
ExecStop=/opt/aura/engine/guru.py --shutdown --quiet
Restart=always
  • Maintainer

    You porbably want to add RestartSec and configure the start limit as well

  • Please register or sign in to reply
[Install]
WantedBy=multi-user.target
Alias=aura-engine-core.service
\ No newline at end of file
[Unit]
Description=Aura Engine - Liquidsoap
After=network.target
Documentation=https://gitlab.servus.at/aura/engine
;StandardInput=socket
[Service]
Type=simple
User=engineuser
WorkingDirectory=/opt/aura/engine
ExecStart=/opt/aura/engine/run.sh lqs
Restart=always
[Install]
; WantedBy=multi-user.target
WantedBy=sockets.target
Alias=aura-engine-lqs.service
[Socket]
ListenStream=/opt/aura/engine/modules/liquidsoap/engine.sock
Accept=false
[Install]
WantedBy=sockets.target
\ No newline at end of file
......@@ -229,6 +229,10 @@ Copy the unit file `/opt/aura/engine/configuration/systemd/aura-engine.service`
This unit file starts engine-core and engine-liquidsoap within one command. Here Liquidsoap is started as
as subprocess.
> Please note not to use any other unit files in that directory yet. They are work in progress.
Now you'll need to reload the Systemd unit files
```shell
sudo systemctl daemon-reload
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment