mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
host 相关的 rpm 包自动添加 systemd unit service 文件
This commit is contained in:
@@ -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
|
||||
@@ -1 +1,2 @@
|
||||
DESCRIPTION="Yunion Host Deploy Agent"
|
||||
SERVICE="yes"
|
||||
|
||||
21
build/host/root/usr/lib/systemd/system/yunion-host.service
Normal file
21
build/host/root/usr/lib/systemd/system/yunion-host.service
Normal 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
|
||||
@@ -1 +1,6 @@
|
||||
DESCRIPTION="Yunion Host Command Line Utility"
|
||||
SERVICE="yes"
|
||||
|
||||
REQUIRES=(
|
||||
"yunion-host-deployer"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user