浏览代码

use pkill instead of pidof

Waldemar Brodkorb 15 年之前
父节点
当前提交
6b6b7abab1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/busybox/files/crond.init

+ 1 - 1
package/busybox/files/crond.init

@@ -14,7 +14,7 @@ start)
 	crond -c /etc/crontabs
 	;;
 stop)
-	kill $(pidof crond|cut -d ' ' -f 3)
+	pkill crond
 	;;
 restart)
 	sh $0 stop