diff options
author | Steve Milner <smilner@redhat.com> | 2017-05-09 12:34:16 -0400 |
---|---|---|
committer | Steve Milner <smilner@redhat.com> | 2017-05-09 14:49:01 -0400 |
commit | 64dd65bef17835164a535d8367fdc8c852a97293 (patch) | |
tree | 7eb75d6c3deb3483dfac946fa64befc8266805e2 /roles/openshift_master/templates | |
parent | b7ccac941502c93e804adf5582575ea3becf1ed8 (diff) | |
download | openshift-64dd65bef17835164a535d8367fdc8c852a97293.tar.gz openshift-64dd65bef17835164a535d8367fdc8c852a97293.tar.bz2 openshift-64dd65bef17835164a535d8367fdc8c852a97293.tar.xz openshift-64dd65bef17835164a535d8367fdc8c852a97293.zip |
Add service file templates for master and node
Adds service file templates for both maste and node. These will lay down
in /etc/system/systemd to override what may already be present from a
package. These instances take into account the name of the container
daemon (docker or container-engine).
Diffstat (limited to 'roles/openshift_master/templates')
-rw-r--r-- | roles/openshift_master/templates/atomic-openshift-master.service | 23 | ||||
-rw-r--r-- | roles/openshift_master/templates/origin-master.service | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/roles/openshift_master/templates/atomic-openshift-master.service b/roles/openshift_master/templates/atomic-openshift-master.service new file mode 100644 index 000000000..02af4dd16 --- /dev/null +++ b/roles/openshift_master/templates/atomic-openshift-master.service @@ -0,0 +1,23 @@ +[Unit] +Description=Atomic OpenShift Master +Documentation=https://github.com/openshift/origin +After=network-online.target +After=etcd.service +Before=atomic-openshift-node.service +Requires=network-online.target + +[Service] +Type=notify +EnvironmentFile=/etc/sysconfig/atomic-openshift-master +Environment=GOTRACEBACK=crash +ExecStart=/usr/bin/openshift start master --config=${CONFIG_FILE} $OPTIONS +LimitNOFILE=131072 +LimitCORE=infinity +WorkingDirectory=/var/lib/origin/ +SyslogIdentifier=atomic-openshift-master +Restart=always +RestartSec=5s + +[Install] +WantedBy=multi-user.target +WantedBy=atomic-openshift-node.service diff --git a/roles/openshift_master/templates/origin-master.service b/roles/openshift_master/templates/origin-master.service new file mode 100644 index 000000000..cf79dda02 --- /dev/null +++ b/roles/openshift_master/templates/origin-master.service @@ -0,0 +1,23 @@ +[Unit] +Description=Origin Master Service +Documentation=https://github.com/openshift/origin +After=network-online.target +After=etcd.service +Before=origin-node.service +Requires=network-online.target + +[Service] +Type=notify +EnvironmentFile=/etc/sysconfig/origin-master +Environment=GOTRACEBACK=crash +ExecStart=/usr/bin/openshift start master --config=${CONFIG_FILE} $OPTIONS +LimitNOFILE=131072 +LimitCORE=infinity +WorkingDirectory=/var/lib/origin/ +SyslogIdentifier=origin-master +Restart=always +RestartSec=5s + +[Install] +WantedBy=multi-user.target +WantedBy=origin-node.service |