mirror of https://github.com/sozu-proxy/sozu.git
30 lines
838 B
SYSTEMD
30 lines
838 B
SYSTEMD
[Unit]
|
|
Description=Sozu - A HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust.
|
|
Documentation=https://docs.rs/sozu/
|
|
After=network-online.target local-fs.target remote-fs.target time-sync.target
|
|
Wants=network-online.target local-fs.target remote-fs.target time-sync.target
|
|
|
|
StartLimitIntervalSec=10
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
RuntimeDirectory=sozu-%i
|
|
PIDFile=/run/sozu/sozu-%i.pid
|
|
|
|
ExecStartPre=/usr/bin/sozu config check --config /etc/sozu/%i.toml
|
|
ExecStart=/usr/bin/sozu start --config /etc/sozu/%i.toml
|
|
ExecReload=/usr/bin/sozu reload --config /etc/sozu/%i.toml
|
|
Restart=on-failure
|
|
|
|
LimitNOFILE=65536
|
|
|
|
# Since systemd 229, should be in [Unit] but in order to support systemd <229,
|
|
# it is also supported to have it here.
|
|
StartLimitInterval=10
|
|
StartLimitBurst=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|