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

Re: adding a servoce



--- Antonio Olivares <olivares14031 yahoo com> wrote:

> 
> --- Jim Douglas <jdz99 hotmail com> wrote:
> 
> > Is this the proper way to add a service t oFC6?
> > 
> > cp /root/download/myservice /etc/init.d/myservice
> > chmod +x /etc/init.d/myservice
> > 
> > 
> > Thanks,
> > Jim
> > 
> >
>
_________________________________________________________________
> > Search for grocery stores. Find gratitude. Turn a
> > simple search into 
> > something more. 
> >
>
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG
> > 
> > -- 
> > fedora-list mailing list
> > fedora-list redhat com
> > To unsubscribe:
> >
> https://www.redhat.com/mailman/listinfo/fedora-list
> > 
> 
> 
> Looks like that will work.  But it is much simpler
> to
> do the steps you outlined 
> 
> Become superuser
> $ su -
> password: ******
> # 
> > cp /root/download/myservice /etc/init.d/myservice
> > chmod +x /etc/init.d/myservice
> and 
> chkconfig myservice --add
> chkconfig myservice on
> and to check that the corresponding rc.X links got
> created, do
> [root localhost rc.d]# for i in 0 1 2 3 4 5 6
> > do
> > ls rc$i.d/*slmodemd*
> > done
> and you should see something like
> rc0.d/K10myservice
> rc1.d/K10myservice
> rc2.d/S90myservice
> rc3.d/S90myservice
> rc4.d/S90myservice
> rc5.d/S90myservice
> rc6.d/K10myservice
> [root localhost rc.d]#
> 
> If you see something like that, then your service
> will
> be setup and good to go.  
> 
> Regards,
> 
> Antonio
> 
Sorry to reply to my own mail, but Aaron, is correct
the myservice script should have a head script for
which to specify in which levels it should run.  Here
are some websites that will help explain this better

http://www.netadmintools.com/art94.html

and

http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html

Regards,

Antonio 

> 
>  
>
____________________________________________________________________________________
> Any questions? Get answers on any topic at
> www.Answers.yahoo.com.  Try it now.
> 
> -- 
> fedora-list mailing list
> fedora-list redhat com
> To unsubscribe:
> https://www.redhat.com/mailman/listinfo/fedora-list
> 



 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather


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