node.service.j2 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. [Unit]
  2. Description=OpenShift Node
  3. After={{ openshift.docker.service_name }}.service
  4. Wants=openvswitch.service
  5. After=ovsdb-server.service
  6. After=ovs-vswitchd.service
  7. Wants={{ openshift.docker.service_name }}.service
  8. Documentation=https://github.com/openshift/origin
  9. Requires=dnsmasq.service
  10. After=dnsmasq.service
  11. [Service]
  12. Type=notify
  13. EnvironmentFile=/etc/sysconfig/{{ openshift.common.service_type }}-node
  14. Environment=GOTRACEBACK=crash
  15. ExecStartPre=/usr/bin/cp /etc/origin/node/node-dnsmasq.conf /etc/dnsmasq.d/
  16. ExecStartPre=/usr/bin/dbus-send --system --dest=uk.org.thekelleys.dnsmasq /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetDomainServers array:string:/in-addr.arpa/127.0.0.1,/{{ openshift.common.dns_domain }}/127.0.0.1
  17. ExecStopPost=/usr/bin/rm /etc/dnsmasq.d/node-dnsmasq.conf
  18. ExecStopPost=/usr/bin/dbus-send --system --dest=uk.org.thekelleys.dnsmasq /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetDomainServers array:string:
  19. ExecStart=/usr/bin/openshift start node --config=${CONFIG_FILE} $OPTIONS
  20. LimitNOFILE=65536
  21. LimitCORE=infinity
  22. WorkingDirectory=/var/lib/origin/
  23. SyslogIdentifier={{ openshift.common.service_type }}-node
  24. Restart=always
  25. RestartSec=5s
  26. TimeoutStartSec=300
  27. OOMScoreAdjust=-999
  28. [Install]
  29. WantedBy=multi-user.target