[debian-mysql] Bug#810968: Bug#810968: Bug#810968: mariadb-server-10.0: Logrotate exists 1 if a non-debian mysqld is running (e.g. containerized mysqld)

Otto Kekäläinen otto at seravo.fi
Sun Feb 21 13:48:38 UTC 2016

Hello Lennart!

Do you intend to make one more version of the patch so that it is
perfect and it is safe for me to include it in the next upload?

Thanks for your help!

2016-01-26 11:13 GMT+02:00 Otto Kekäläinen <otto at seravo.fi>:
>> 2) Check the parent process id being 1
>>    In this case parent of the parent because of mysqld_safe
>>    # test $(ps -o ppid= -p $(ps -o ppid= -p $PID)) -eq 1
>>    This would work in most cases I can think of. mysqld run by a user
>>    or a container would not be started by the init. But seems like a
>>    rather complex solution to a fairly simple problem.
> Option 2 seems OK. Alternatively we could check processed owned by user 'mysql'.
> Yes, the solution might be a bit complex, but I am fine with it as
> long as the bash code is well documented and as clean as possible, so
> that potential regressions/bugs in future are easy to track down and
> new people are confident in tweaking the code. Try avoiding long
> oneliners and short-cut code style (to the extend possible, it is
> after all bash scripting).
> _______________________________________________
> pkg-mysql-maint mailing list
> pkg-mysql-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint

Check out our blog at http://seravo.fi/blog
and follow @ottokekalainen

More information about the pkg-mysql-maint mailing list