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