agama/rust/share/agama-web-server.service
2026-07-09 10:56:12 +01:00

20 lines
847 B
Desktop File

[Unit]
Description=Agama Web Server
# agama-hostname might change the host name which is used when creating
# a self signed certificate, run it before the web server
After=network-online.target agama.service agama-hostname.service
BindsTo=agama.service
[Service]
EnvironmentFile=-/run/agama/environment.conf
Environment="AGAMA_LOG=debug,zbus=info"
Type=notify
# listen only on the loopback interface if the inst.remote=0 boot option is set
ExecStart=/usr/bin/bash -c "grep -q '\\binst.remote=0\\b' /run/agama/cmdline.d/agama.conf && exec /usr/bin/agama-web-server serve --address ::1:80,127.0.0.1:80 --address ::1:443,127.0.0.1:443 || exec /usr/bin/agama-web-server serve --address :::80,0.0.0.0:80 --address :::443,0.0.0.0:443"
PIDFile=/run/agama/web.pid
User=root
TimeoutStopSec=5
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target