Disabling init scripts on Trisquel

4 respuestas [Último envío]
Sachin
Desconectado/a
se unió: 06/02/2012

I have installed mysql on my system and I want to disable the initiaton
of mysqld on the system.
Here are what I have tried and still failed:
1. $ update-rc.d -f mysql remove
2. $ chkconfig mysql off
3. Installed a package called "sysv-rc-conf", runned it as root, mysql
section was already unmarked even though it started during boot.

I have even rebooted each time after trying each of the methods.
I am also informed that on Debian->Ubuntu based systems it is "mysql"
and not "mysqld".

Previously I had disabled "apache2" using "sysv-rc-conf" before I knew
about "update-rc.d" and later I have used "update-rc.d" to remove
"postgresql" init scripts.

I have checked in my "/etc/rc[2-5].d" folders "update-rc.d" did remove
the "mysql" scripts. Also I have noticed "apache2" and "postgresql" are
just scripts in the "/etc/init" folder while "mysql" is a softlink to
"/lib/init/upstart-job" and I am trying to read and understand the
"upstart-job".

jbar
Desconectado/a
se unió: 01/22/2011

This should work

$ echo "manual" | sudo tee /etc/init/mysql.override

Sachin
Desconectado/a
se unió: 06/02/2012

On 04/08/2013 01:24 AM, name at domain wrote:
> This should work
>
> $ echo "manual" | sudo tee /etc/init/mysql.override
>
Thank You!
Doing that did what I wanted.
I also learned that "/etc/init" contains only those which has been
converted into upstart jobs.

jbar
Desconectado/a
se unió: 01/22/2011

I'm glad to help trisquel community.

Happy hacking :)

GustavoCM

I am a member!

Desconectado/a
se unió: 11/20/2012

Wow, that "tee" stuff is marvelous. I always used

$ sudo sh -c 'echo foo >> bar'

to append text to a file as root, but this "echo foo | sudo tee bar" (tee -a appends instead of substituting) is a more proper way to do that.