diff options
| author | Qiuwen Lu <[email protected]> | 2016-12-19 13:11:28 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2016-12-19 13:11:28 +0800 |
| commit | 8840c7c7d61d8c1408d83ec9dd03c3dce81fdad8 (patch) | |
| tree | ea2cd167aae36bfe3fc74c845efd843b0a5e8bf2 /tools/systemd | |
| parent | 092ea4de6b07a6da5e9b349b099d6f209c3a2c67 (diff) | |
增加service进程重启的间隔时间,由原来的失败重启改为无理由重启。
Diffstat (limited to 'tools/systemd')
| -rw-r--r-- | tools/systemd/mrzcpd.service.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/systemd/mrzcpd.service.in b/tools/systemd/mrzcpd.service.in index 9f8365c..6930c93 100644 --- a/tools/systemd/mrzcpd.service.in +++ b/tools/systemd/mrzcpd.service.in @@ -6,7 +6,8 @@ After=mrenv.service [Service] EnvironmentFile=/etc/sysconfig/mrzcpd ExecStart=@MR_INSTALL_BINDIR@/zcpd -c @MR_INSTALL_SYSCONFDIR@/mrglobal.conf -Restart=on-failure +Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target
\ No newline at end of file |
