This commit is contained in:
2023-08-19 14:25:49 +08:00
parent a2fbb6113b
commit 2ae03fbed4
9 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=REST agent daemon
After=network-online.target
[Service]
Type=simple
LimitNOFILE=65535
Restart=always
ExecStart=/usr/local/omc/bin/restagent -c /usr/local/omc/etc/restconf.yaml
RestartSec=2
RestartPreventExitStatus=1
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target