fix: enhance service for restagent
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
[Unit]
|
||||
Description=OMC Service
|
||||
After=network-online.target mysql.service kvdb.service
|
||||
Wants=network-online.target
|
||||
RequiresMountsFor=/usr/local/omc
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -8,8 +10,10 @@ LimitNOFILE=65535
|
||||
LimitNPROC=65535
|
||||
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=3
|
||||
ExecStart=/usr/local/omc/bin/restagent -c /usr/local/omc/etc/restconf.yaml
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
[Unit]
|
||||
Description=PSAP rest agent daemon
|
||||
Description=PSAP rest agent daemon
|
||||
After=network-online.target mysql.service kvdb.service
|
||||
Wants=network-online.target
|
||||
RequiresMountsFor=/usr/local/omc
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -8,8 +10,10 @@ LimitNOFILE=65535
|
||||
LimitNPROC=65535
|
||||
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=3
|
||||
ExecStart=/usr/local/omc/bin/restagent -c /usr/local/omc/etc/restconf.yaml
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user