diff options
author | kshithijiyer <kshithij.ki@gmail.com> | 2020-04-07 00:47:17 +0530 |
---|---|---|
committer | kshithijiyer <kshithij.ki@gmail.com> | 2020-04-07 01:07:45 +0530 |
commit | e5a011ce5d20773705b949289a0fba6b45300a79 (patch) | |
tree | 61c3906199ac070b6e5ebf6794b462b800623b67 /tests | |
parent | dd2382c613db6f3dd72a25c74d5f765006aea31f (diff) |
[Libfix] Change daemon_reload() to support newer platforms
Problem:
Currently the code supports both service and systemctl
commands but it fails on the latest platforms with
the below error on the latest platforms:
```
service glusterd reload
Redirecting to /bin/systemctl reload glusterd.service
Failed to reload glusterd.service: Job type reload is
not applicable for unit glusterd.service.
```
This is because the latest platforms uses systemctl
instead of service to reload the daemon processes:
```
systemctl daemon-reload
```
Solution:
The present code doesn't work properly as the check
is specific to only one platform, hence it fails.
The solution for this is to just check for older
platforms and run service command. For all other
platforms run systemctl command.
Change-Id: I19b24652b96c4794553d3659eaf0301395929bca
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions