diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/Wizcommon.pm | 6 |
1 files changed, 1 insertions, 5 deletions
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($$) { |