Comments - Installing MariaDB Alongside MySQL
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
solved it by setting the macro in /etc/init.d/mariadb at line 284 , as it is being evaluated to the one used by MySql instance.
mysqld_pid_file_path=$datadir/`hostname`.pid
Other than this the instructions on this webpage work like a charm ! thanks Taha