Re: [opensuse] adding links in /etc/init.d/rc*.d/



I'd put it somewhere late in the runlevel sequence of events. Like, say 30 or
so. On my SLES10 it's killed as no 10 and started as no 12.

As root, goto /etc/init.d/rc3.d and do:

ln -s ../postgresql S30postgresql

Symlinks preceded by an "S" starts stuff. "K" kills stuff. See "man init.d"

Actually I wouldn't do it by hand at all. I'd use YaST under System, Runlevel
services. In there, I'd set it to run in runlevel 3 (and 5 for that matter).
I'd also use YaST to start and stop the service. That should really do it.


One correction to this: better not do ln -s by hand, because next time
you run either yast or chkconfig, it can change the service priority
unexpectedly. I just got burned by that recently. If you really want
to control the order in which services start, then first edit the
script header, and on the # Required-Start: line (there will be one on
top) add names all the services you want to start before this script.
Then run either insserv or yast system services module to enable the
script.

Myrosia
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Only root can use scanner on SuSE 10.2
    ... unattended checklist ending with "Detecting USB and SCSI scanners" ... I assume you accepted yast proposal. ... but I can't find any such script or documentation in any of the three ...
    (SuSE)
  • Re: [SLE] network install over ssh
    ... directory where YaST writes the stage 2 boot script, ... #2, suspend YaST, switch back to #3 and edit the script in such a way ... you switch back to #2 to resume YaST and allow ...
    (SuSE)
  • SPAM: Re: [SLE] Starting programs at boot - first time at doing this
    ... In SuSE Linux those symlinks can be erased by Yast at the first chance it ... The script should be created according to a certain syntax shown in ...
    (SuSE)
  • [SLE] /etc/init.d script startup order
    ... I have put script into /etc/init.d and enabled it on runlevel 3 via ... YAST. ... this script must be run LAST. ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)
  • Re: [SLE] YOU Problem on SuSE 10
    ... The script gives you URLs based on geography. ... YaST will send this location to the suseservers.cgi script so you can get ... mirror servers that are close to you geographically. ...
    (SuSE)