浏览代码

added -f to rm commands to remove possible pid files

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1149 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 24 年之前
父节点
当前提交
14eaeccb22
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      chapter07/functions.xml

+ 2 - 2
chapter07/functions.xml

@@ -294,7 +294,7 @@ killproc()
 # print [  OK  ]
 #
 
-                                /bin/rm /var/run/$base.pid
+                                /bin/rm -f /var/run/$base.pid
                                 print_status success
                         fi
                 else
@@ -328,7 +328,7 @@ killproc()
 # PID file and print [  OK  ]
 #
 
-                                /bin/rm /var/run/$base.pid
+                                /bin/rm -f /var/run/$base.pid
                                 print_status success
                         fi
                 fi