diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | common/Wizcommon.pm | 6 |
2 files changed, 2 insertions, 5 deletions
@@ -1,3 +1,4 @@ +- Fix restarting services with current systemd - Fix proftpd default config file to handle the case when indent module is not available. diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm index e9eeaa09..e6a23c5b 100644 --- a/common/Wizcommon.pm +++ b/common/Wizcommon.pm @@ -50,11 +50,7 @@ sub check_started { sub reload_or_restart { my ($service) = @_; - if (run_program::rooted($::prefix, '/bin/mountpoint', '-q', '/sys/fs/cgroup/systemd')) { - run_program::rooted($::prefix, '/bin/systemctl', 'reload-or-restart', "$service.service"); - } else { - run_program::rooted($::prefix, "/etc/rc.d/init.d/$service", "restart"); - } + run_program::rooted($::prefix, '/bin/systemctl', 'reload-or-restart', "$service.service"); } sub check_starts_on_boot($$) { |