diff options
author | Scott Ullrich <sullrich@gmail.com> | 2012-05-07 10:27:57 -0700 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2012-05-07 10:27:57 -0700 |
commit | cd61951824b81af9522d5d635d7fb5952c77445b (patch) | |
tree | c50e5b57f6873d5e4b6f8ec1ca5ad352c3ea3e39 /etc | |
parent | 8d70eb8d9eadf136d211577e763b7f7678ecd489 (diff) | |
parent | 9a1248b3a813ccfad927362e8185879cdba26925 (diff) | |
download | pfsense-cd61951824b81af9522d5d635d7fb5952c77445b.zip pfsense-cd61951824b81af9522d5d635d7fb5952c77445b.tar.gz |
Merge pull request #101 from marcelloc/patch-8
Patch 8
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/service-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index 57b1719..01230a1 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -129,7 +129,7 @@ function stop_service($name) { $prefix =& $service['prefix']; } if(file_exists("{$prefix}{$service['rcfile']}")) { - mwexec_bg("{$prefix}{$service['rcfile']} stop"); + mwexec("{$prefix}{$service['rcfile']} stop"); } return; } @@ -138,7 +138,7 @@ function stop_service($name) { if(!($service['rcfile'] or $service['stopcmd'])) { if(is_process_running("{$service['executable']}")) - mwexec_bg("/usr/bin/killall {$service['executable']}"); + mwexec("/usr/bin/killall {$service['executable']}"); return; } break; @@ -147,7 +147,7 @@ function stop_service($name) { } /* finally if we get here lets simply kill the service name */ if(is_process_running("{$name}")) - mwexec_bg("/usr/bin/killall {$name}"); + mwexec("/usr/bin/killall {$name}"); } function restart_service($name) { |