host 相关的 rpm 包自动添加 systemd unit service 文件

This commit is contained in:
Zexi
2019-07-13 20:06:55 +08:00
parent 9a1838d7fc
commit 66a492e99c
4 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
[Unit]
Description=Yunion Host Deploy Agent
Documentation=https://docs.yunion.cn
After=network.target httpd.service
[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/yunion/bin/host-deployer --conf /etc/yunion/host.conf
WorkingDirectory=/opt/yunion/bin
KillMode=process
Restart=always
RestartSec=30
LimitNOFILE=500000
LimitNPROC=500000
[Install]
WantedBy=multi-user.target

View File

@@ -1 +1,2 @@
DESCRIPTION="Yunion Host Deploy Agent"
SERVICE="yes"

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Yunion Cloud Host Agent server
Documentation=https://docs.yunion.cn
After=network-online.target
Wants=network-online.target
After=network.target yunion-host-deployer.service
[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/yunion/bin/host --config /etc/yunion/host.conf
WorkingDirectory=/opt/yunion/bin
KillMode=process
Restart=always
RestartSec=30
LimitNOFILE=500000
LimitNPROC=500000
[Install]
WantedBy=multi-user.target

View File

@@ -1 +1,6 @@
DESCRIPTION="Yunion Host Command Line Utility"
SERVICE="yes"
REQUIRES=(
"yunion-host-deployer"
)