I am using fedora 15.
I am trying to add MYSql daemon to start during system strtup.
I have understood that I will have to add it to rc5.d
as it is the default target & is graphical.target
.
from inittab
:
systemd uses 'targets' instead of runlevels. By default, there are two main targets:
multi-user.target: analogous to runlevel 3
graphical.target: analogous to runlevel 5
From An introduction to services, runlevels, and rc.d scripts :
When the system is shut down, there is another symlink in the /etc/rc0.d and /etc/rc6.d directories (halt and reboot, respectively) that starts with a K instead of an S, which tells init to shut down the process.
I notice that symlink to httpd
are present in all the rc<number>.d
folders
as symlink: K15httpd -> ../init.d/httpd
.
No symlink is present that starts with S
. Makes sense as I have to start it manually.
- Why is the symlink
K15httpd -> ../init.d/httpd
present in all therc<number>.d
folders?- What should I name the symlink if I want to start httpd during system startup?
- What is the number that is present in the symlink? i.e. K15httpd -> ../init.d/httpd what is 15 here?
- I read (here) that the symlink to MYSql should be S98mysql is it right and what should the name to symlink that starts with K should be?