chore: 打包程序restagent变更omc
This commit is contained in:
16
build/config/systemd/omc.service
Normal file
16
build/config/systemd/omc.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=OMC Service daemon
|
||||
After=network-online.target mysql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
LimitNOFILE=65535
|
||||
|
||||
Restart=always
|
||||
ExecStart=/usr/local/omc/bin/omc -c /usr/local/omc/etc/omc.yaml
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user