Re: Services, how does it work?

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

 



On Fri, 19 Aug 2005 13:45:31 +0300, <akonstam@xxxxxxxxxxx> wrote:

On Fri, Aug 19, 2005 at 11:09:09AM +0100, Paul Howarth wrote:
Matthias Bauw wrote:
>hi there,
>
>I have been using fedora linux for quite some time now and I have
>been able to build several software programs from source. But sometimes
>I want that software to start automatically.
>
>Therefore I would like to add those programs to the 'services' in Fedora,
>but I don't see how it is done.
>
>Does anyone know a good tutorial that explains how it all works?

You need to write an initscript and put it in /etc/rc.d/init.d. You'll
find many examples in that directory. You can then configure the service
to be started automatically (or not) using chkconfig. See "man
chkconfig" for details.

Paul.
I would just like to emphasize that in order for your initscripts to
work with chkconfig there are lines that must be inserted in the
beginning of the script that makes that possible. Check nay of the
existing scripts in /etc/rc.d/init.d to see how that is done.

I also noticed an option in Service Configuration->Actions->Add Service. When I tried it though, I got an "error" window popup, but nothing was written in it!!
And the service name was not added....Bug maybe ?

[root@purgatory ~]# rpm -q system-config-services
system-config-services-0.8.25-1


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

  Powered by Linux