diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-19 16:21:39 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-19 16:21:39 -0500 |
commit | 56d41c5dc8a80e53d934df159a58b91be975e3b0 (patch) | |
tree | 814a64675ad7177334a20328783dab7d62c3e981 /roles/openshift_master/templates/docker-cluster/atomic-openshift-master-api.service.j2 | |
parent | 20f9b4997f208e9374a4e74b79af64e0e25e4c0d (diff) | |
parent | f97c972fb9848327e9d66678d81d296928deb520 (diff) | |
download | openshift-56d41c5dc8a80e53d934df159a58b91be975e3b0.tar.gz openshift-56d41c5dc8a80e53d934df159a58b91be975e3b0.tar.bz2 openshift-56d41c5dc8a80e53d934df159a58b91be975e3b0.tar.xz openshift-56d41c5dc8a80e53d934df159a58b91be975e3b0.zip |
Merge pull request #1175 from detiber/ha_port_fixes
Ha port fixes
Diffstat (limited to 'roles/openshift_master/templates/docker-cluster/atomic-openshift-master-api.service.j2')
-rw-r--r-- | roles/openshift_master/templates/docker-cluster/atomic-openshift-master-api.service.j2 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/openshift_master/templates/docker-cluster/atomic-openshift-master-api.service.j2 b/roles/openshift_master/templates/docker-cluster/atomic-openshift-master-api.service.j2 new file mode 100644 index 000000000..a935b82f6 --- /dev/null +++ b/roles/openshift_master/templates/docker-cluster/atomic-openshift-master-api.service.j2 @@ -0,0 +1,26 @@ +[Unit] +Description=Atomic OpenShift Master API +Documentation=https://github.com/openshift/origin +After=network.target +After=etcd.service +Before={{ openshift.common.service_type }}-node.service +Requires=network.target +Requires=docker.service +PartOf=docker.service + +[Service] +EnvironmentFile=/etc/sysconfig/{{ openshift.common.service_type }}-master-api +Environment=GOTRACEBACK=crash +ExecStartPre=-/usr/bin/docker rm -f {{ openshift.common.service_type}}-master-api +ExecStart=/usr/bin/docker run --rm --privileged --net=host --name {{ openshift.common.service_type }}-master-api -v {{ openshift.common.data_dir }}:{{ openshift.common.data_dir }} -v /var/run/docker.sock:/var/run/docker.sock -v {{ openshift.common.config_base }}:{{ openshift.common.config_base }} {{ openshift.master.master_image }} start master api --config=${CONFIG_FILE} $OPTIONS +ExecStartPost=/usr/bin/sleep 10 +ExecStop=/usr/bin/docker stop {{ openshift.common.service_type }}-master-api +LimitNOFILE=131072 +LimitCORE=infinity +WorkingDirectory={{ openshift.common.data_dir }} +SyslogIdentifier=atomic-openshift-master-api +Restart=always + +[Install] +WantedBy=multi-user.target +WantedBy={{ openshift.common.service_type }}-node.service |