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