diff options
author | Nick Bartos <flamingo@2thebatcave.com> | 2017-12-05 08:30:41 +1100 |
---|---|---|
committer | Nick Bartos <flamingo@2thebatcave.com> | 2017-12-14 17:44:59 +1100 |
commit | e28adead42dd55f23f0421aa054c7419e646b2a9 (patch) | |
tree | 2413417d2639f65c9ea46d2207bc8d1893f5328f /roles/contiv/templates/netmaster.service | |
parent | 34f248849d0963403f7939d5b229381374d025a7 (diff) | |
download | openshift-e28adead42dd55f23f0421aa054c7419e646b2a9.tar.gz openshift-e28adead42dd55f23f0421aa054c7419e646b2a9.tar.bz2 openshift-e28adead42dd55f23f0421aa054c7419e646b2a9.tar.xz openshift-e28adead42dd55f23f0421aa054c7419e646b2a9.zip |
Contiv systemd fixes
Add install section so that enable on reboot works.
Make sure services are always restarted if they die.
Diffstat (limited to 'roles/contiv/templates/netmaster.service')
-rw-r--r-- | roles/contiv/templates/netmaster.service | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/contiv/templates/netmaster.service b/roles/contiv/templates/netmaster.service index a602c955e..ce7d0c75e 100644 --- a/roles/contiv/templates/netmaster.service +++ b/roles/contiv/templates/netmaster.service @@ -6,5 +6,8 @@ After=auditd.service systemd-user-sessions.service contiv-etcd.service EnvironmentFile=/etc/default/netmaster ExecStart={{ bin_dir }}/netmaster $NETMASTER_ARGS KillMode=control-group -Restart=on-failure +Restart=always RestartSec=10 + +[Install] +WantedBy=multi-user.target |