Answer the question
In order to leave comments, you need to log in
How to make a process launched from bash not block other processes?
Fragment of my script:
#Запуск MySQL сервера
/usr/sbin/mysqld
if [ $? != 0 ]; then
error_handler "Could not start mysql server..."
fi
#Запуск php-fpm
/usr/sbin/php-fpm
if [ $? != 0 ]; then
error_handler "Could not start php-fpm..."
fi
#Запуск nginx
/usr/local/nginx/sbin/nginx
if [ $? != 0 ]; then
error_handler "Could not start nginx..."
fi
Answer the question
In order to leave comments, you need to log in
/usr/sbin/mysqld &
Didn't you just think to run it through init.d/invoke.d/services?
Try running
/etc/init.d/mysql start
/etc/init.d/php-fpm start
/etc/init.d/nginx start
Start daemons via systemctl, not directly. For example:sudo systemctl restart mysqld
The thing is, I'm using Cygwin and there is no init.d/invoke.d/services . In addition,
I don’t always need a server, so I think it’s not rational to add it to startup.
And I'll try this:
/usr/sbin/mysqld&
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question