How to change permissions to mysql pid file By default mysql creates pid file as -rw-rw---- mysql:mysql mysql.pid. Is there any way to change those permissions? I need o+r for monitoring purposes. 

Of course I could add sticky bit for directory above and change group ownership but if it could be changed somewhere in settings it would be the cleanest solution.

I'm running mysql 5.5 if that matters.
There's no need. You can check the existence of the file without changing the permissions:

if [ -f /var/run/mysqld/mysqld.pid ]; then     echo "mysqld running"; fi


If that's not good enough you can check the pid (i.e. the contents of the file) directly:

ps -U mysql | grep mysqld | cut -f1 -d' '