Re: Postgresql-8.0.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matt Morgan wrote:
One more dumb question related to this interesting topic: is there any
more to getting a service set up than having a startup'shutdown script
in /etc/init.d? That is, once you have that script there, will
'chkconfig' and 'service' start working? Or is there still more that
must be done.

chkconfig depends on special format of comment section at the beginning of startup script. Basically, it usually looks something like this (example taken from sshd startup script):


# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

For chkconfig, the first line is most important. It tells in what run levels this script should be started (2, 3, 4, and 5 in this example) when you enable the service using "chkconfig service on". It also tells that links from rc?.d directories should be created as S55sshd and K25sshd (last two parameters). The rest, you can usually live without it.

--
Aleksandar Milivojevic <amilivojevic@xxxxxx>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux