[arch-commits] Commit in mysql/trunk (mysqld)

Douglas Soares de Andrade douglas at archlinux.org
Mon Jun 8 12:44:36 UTC 2009


    Date: Monday, June 8, 2009 @ 08:44:36
  Author: douglas
Revision: 41941

Updated the mysqld script to use the beautiful pgrep instead of grep and awk

Modified:
  mysql/trunk/mysqld

--------+
 mysqld |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: mysqld
===================================================================
--- mysqld	2009-06-08 12:35:20 UTC (rev 41940)
+++ mysqld	2009-06-08 12:44:36 UTC (rev 41941)
@@ -9,7 +9,7 @@
 . /etc/rc.d/functions
 
 getPID() {
-   echo $(ps aux | grep ^mysql | awk '{print $2}');
+   echo $(pgrep -u mysql mysqld);
 }
 
 if [ ! `egrep '^mysql:' /etc/group` ]; then




More information about the arch-commits mailing list