node.service.j2 691 B

1234567891011121314151617181920212223242526
  1. [Unit]
  2. Description=OpenShift Node
  3. After={{ openshift_docker_service_name }}.service
  4. After=chronyd.service
  5. After=ntpd.service
  6. Wants={{ openshift_docker_service_name }}.service
  7. Documentation=https://github.com/openshift/origin
  8. Wants=dnsmasq.service
  9. After=dnsmasq.service
  10. {% if openshift_use_crio | bool %}Wants=cri-o.service{% endif %}
  11. [Service]
  12. Type=notify
  13. EnvironmentFile=/etc/sysconfig/{{ openshift_service_type }}-node
  14. ExecStart=/usr/local/bin/openshift-node
  15. LimitNOFILE=65536
  16. LimitCORE=infinity
  17. WorkingDirectory=/var/lib/origin/
  18. SyslogIdentifier={{ openshift_service_type }}-node
  19. Restart=always
  20. RestartSec=5s
  21. TimeoutStartSec=300
  22. OOMScoreAdjust=-999
  23. [Install]
  24. WantedBy=multi-user.target