mirror of
https://github.com/hanzozt/zt.git
synced 2026-11-02 11:38:22 +00:00
30 lines
703 B
Desktop File
30 lines
703 B
Desktop File
[Unit]
|
|
Description=OpenZiti Controller
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# manage the user and permissions for the service automatically
|
|
DynamicUser=yes
|
|
|
|
# this env file configures the service, including whether or not to perform bootstrapping
|
|
EnvironmentFile=/opt/openziti/etc/controller/service.env
|
|
|
|
# relative to /var/lib
|
|
StateDirectory=ziti-controller
|
|
WorkingDirectory=/var/lib/ziti-controller
|
|
ReadOnlyPaths=/opt/openziti/share/console
|
|
|
|
ExecStartPre=/opt/openziti/etc/controller/entrypoint.bash check config.yml
|
|
ExecStart=/opt/openziti/bin/ziti controller run config.yml ${ZITI_ARGS}
|
|
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
LimitNOFILE=65535
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|