pref: 重构打包目录和脚本
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/db/bin/redis-server /usr/local/db/bin/conf/redis.conf
|
||||
ExecStopPost=
|
||||
PIDFile=
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
17
build/debbuild/lib/systemd/system/omc.service
Normal file
17
build/debbuild/lib/systemd/system/omc.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=OMC Agent Daemon
|
||||
After=network-online.target mysql.service kvdb.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
LimitNOFILE=65535
|
||||
LimitNPROC=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