Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an mysql server running under raspbian on my raspberry pi. Do you know how to avoid that the server starts on system startup?

I read everywhere that I have to make changes in the /etc/init/mysql.conf file or to do echo "manual" >> /etc/init/mysql.override But in my /etc/init/ there is no file at all with mysql in its name.

Any ideas? Thanks a lot! Maik

share|improve this question
add comment

1 Answer

I have this same issue on my server too. I dont want pure-ftpd to start.

This may not be the answer you like, but there is a sort of "ghetto" work around:

Before exit 0 in the /etc/rc.local script add this line:

sudo pkill <process name>

you can just find the process name by using top and have the sql server running.

if you dont like the pkill, you can put this inside your rc.local

sudo service stop <service name>

You can get an idea of the service name of your service name by running in terminal:

find /etc/rc* | grep "sql"


Rc.local gets executed after all the startup scripts so the sql will be up for less than a second but will immediately terminate.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.