yunion-host.service 453 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=Yunion Cloud Host Agent server
  3. Documentation=https://docs.yunion.cn
  4. After=network-online.target
  5. Wants=network-online.target
  6. After=network.target yunion-host-deployer.service
  7. [Service]
  8. Type=simple
  9. User=root
  10. Group=root
  11. ExecStart=/opt/yunion/bin/host --config /etc/yunion/host.conf
  12. WorkingDirectory=/opt/yunion/bin
  13. KillMode=process
  14. Restart=always
  15. RestartSec=30
  16. LimitNOFILE=500000
  17. LimitNPROC=500000
  18. [Install]
  19. WantedBy=multi-user.target