diff options
-rw-r--r-- | usr/local/pkg/routed/routed.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/pkg/routed/routed.inc b/usr/local/pkg/routed/routed.inc index 59967e8..498bc71 100644 --- a/usr/local/pkg/routed/routed.inc +++ b/usr/local/pkg/routed/routed.inc @@ -99,7 +99,8 @@ function start_routed() { } function stop_routed() { - mwexec("killall routed"); + if(isvalidproc("routed")) + mwexec("killall routed"); } function restart_routed() { @@ -107,4 +108,4 @@ function restart_routed() { start_routed(); } -?> +?>
\ No newline at end of file |