diff options
Diffstat (limited to 'roles/openshift_master/templates/native-cluster/atomic-openshift-master-controllers.service.j2')
-rw-r--r-- | roles/openshift_master/templates/native-cluster/atomic-openshift-master-controllers.service.j2 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/openshift_master/templates/native-cluster/atomic-openshift-master-controllers.service.j2 b/roles/openshift_master/templates/native-cluster/atomic-openshift-master-controllers.service.j2 new file mode 100644 index 000000000..e284413f7 --- /dev/null +++ b/roles/openshift_master/templates/native-cluster/atomic-openshift-master-controllers.service.j2 @@ -0,0 +1,26 @@ +[Unit] +Description=Atomic OpenShift Master Controllers +Documentation=https://github.com/openshift/origin +After=network-online.target +After={{ openshift.common.service_type }}-master-api.service +Wants={{ openshift.common.service_type }}-master-api.service +Requires=network-online.target + +[Service] +{% if openshift.common.version_gte_3_1_1_or_1_1_1 | bool %} +Type=notify +{% else %} +Type=simple +{% endif %} +EnvironmentFile=/etc/sysconfig/{{ openshift.common.service_type }}-master-controllers +Environment=GOTRACEBACK=crash +ExecStart=/usr/bin/openshift start master controllers --config=${CONFIG_FILE} $OPTIONS +LimitNOFILE=131072 +LimitCORE=infinity +WorkingDirectory={{ r_openshift_master_data_dir }} +SyslogIdentifier={{ openshift.common.service_type }}-master-controllers +Restart=always +RestartSec=5s + +[Install] +WantedBy=multi-user.target |