You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
866 B
26 lines
866 B
[Unit]
|
|
Description=TERA management API
|
|
After=network-online.target tera-hwd.service tera-seriald.service tera-netd.service tera-logd.service tera-timed.service tera-alarmd.service tera-snmpd.service tera-updated.service tera-accessd.service
|
|
Wants=network-online.target tera-hwd.service tera-seriald.service tera-netd.service tera-logd.service tera-timed.service tera-alarmd.service tera-snmpd.service tera-updated.service tera-accessd.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=tera
|
|
Group=tera
|
|
EnvironmentFile=-/etc/tera/tera-api.env
|
|
ExecStart=/usr/bin/tera-api
|
|
Restart=on-failure
|
|
RestartSec=2s
|
|
UMask=0007
|
|
StateDirectory=tera-api
|
|
LogsDirectory=tera
|
|
RuntimeDirectory=tera-api
|
|
RuntimeDirectoryMode=0750
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/tera-api /var/log/tera /run/tera-api
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|