Add units for ``systemd`` to easily handle Libervia services on system-wide installation. There is a service to run a single backend instance for all clients and components, and another one if administrators prefer isolated instances. The latter one uses a systemd template system.
18 lines
350 B
Desktop File
18 lines
350 B
Desktop File
[Unit]
|
|
Description=Libervia Backend
|
|
Wants=network-online.target
|
|
After=network.target network-online.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
User=libervia
|
|
Group=libervia
|
|
StateDirectory=libervia
|
|
RuntimeDirectory=libervia
|
|
Environment=XDG_RUNTIME_DIR=/run/libervia
|
|
ExecStart=libervia-backend fg
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|