This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BASH: kill: (388067) - Not owner


Hi,

I installed a few days ago mysql server 3.23.25 for
Windows (i'm running latest cygwin with Windows ME).

I want to let mysqld server be running by cygwin.

I wrote a script and forgot the "&" to put the task in
background.

/etc/profile.d/S01mysqld.sh:
if [ "`ps | grep -i mysqld-opt`" = '' ]
then
        echo -n Starting mysqld...
        rm -f /var/run/mysqld.pid
        /usr/sbin/mysqld
        if [ ps -ef |grep mysqld-opt ] ; then
                ps -ef |grep mysqld-opt | awk '{print
$1}' >/var/run/mysqld.pid
        echo [OK]
        fi
else
        echo mysqld is already running... [FAILED]
fi

So when i wanted to kill it, made also ps -f:
$ ps -f
     UID     PID    PPID TTY     STIME COMMAND
     syl  341143       1 con  11:11:09 /usr/bin/BASH
     syl  145963  341143 con  11:17:19 /usr/bin/SH
     syl  388067  145963 con    Jan 1
/cygdrive/c/mysql/bin/mysqld-opt
     syl  517055       1 con  11:17:31 /usr/bin/BASH
     syl  496595  517055 con  13:04:57 /usr/bin/PS

and do kill 388067, i was then told i am not the owner
of the process !

The only way to kill it (i tried before with -9
option)
was to use WinMySQLadmin.

What could I do to solve the problem ?

Sylvain
+ Future will be better tomorrow +

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.fr

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]