write MaxScale PID into pidfile

write MaxScale PID into pidfile