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
404 B
Desktop File
18 lines
404 B
Desktop File
[Unit]
|
|
Description=Libervia Web
|
|
Wants=network-online.target libervia-backend.service
|
|
After=network.target network-online.target libervia-backend.service
|
|
|
|
[Service]
|
|
Type=exec
|
|
User=libervia
|
|
Group=libervia
|
|
StateDirectory=libervia-web
|
|
RuntimeDirectory=libervia-web
|
|
Environment=XDG_RUNTIME_DIR=/run/libervia-web
|
|
ExecStart=libervia-web fg
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|