Fedora Linux Support Community & Resources Center
  #1  
Old 18th March 2012, 01:29 AM
rholme Offline
Registered User
 
Join Date: May 2009
Posts: 170
linuxfirefox
rc?.d scripts and startup in fedora 16

I am pretty well acquainted with /etc/rc?.c/{S,K}nnScripts and used to be familiar with /etc/rc.local.

In fedora 14 I could get things to run in ./etc/rc.local (was an empty script but I could add lines - in fedora 16 here is nothing there at all) and one should be able ro run scrips in rc?.d at startup (S..) or shutdown (K..) of the OS state (ATT Unix System V style). In fedora 14 I used rc.local as I had some problems getting local things to run right in the K/S scripts. In fedora 16, I cannot seem to get an /etc/rc9.d/S99xxx or /etc/rc0.d/K99xxx script to run, nor can I make a new file (was none) for /etc/rc.local and get it to run. In each case I inserted a command to watch the run and then rebooted.

e.g.
echo $* >> /tmp/some_log_file

I have concluded that I cannot get any script to run at boot time or shutdownt time. My goal is simply to run a few commands upon boot - rc0 ... rc5 - it does not matter as long as it happens before I (the user login).

I will note that I added an rc6/S56ixinetd script and xinetd does come up (but a command insertedd in there does not log so I have no idea how it comes up!).

I will also note that I see very few SNNxxx scripts but several KNNxxx scripts in /etc/rc?.d directories.

I have been dealing with Unix for a LONG time and am at al loss.

i am confused. I know Unix well and thought we had system 5 sematics.

WTF am I doing wrong?
Reply With Quote
  #2  
Old 18th March 2012, 02:01 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxopera
Re: rc?.d scripts and startup in fedora 16

Quote:
Originally Posted by rholme

I will also note that I see very few SNNxxx scripts but several KNNxxx scripts in /etc/rc?.d directories.
Fedora 16 continues the conversion of SysV init scripts to native systemd service files. As package maintainers switch over to systemd units, they are dropping their old SysV scripts. I imagine someday none will be left.

Quote:
Originally Posted by rholme

In fedora 14 I could get things to run in ./etc/rc.local (was an empty script but I could add lines - in fedora 16 here is nothing there at all)
Kinda the same explanation for that. There is some systemd way of doing that now. But according to the Fedora 16 release notes, if you need to, you still can create /etc/rc.d/rc.local, make it executable, and it will run on boot.
Reply With Quote
  #3  
Old 18th March 2012, 01:42 PM
rholme Offline
Registered User
 
Join Date: May 2009
Posts: 170
linuxfirefox
Re: rc?.d scripts and startup in fedora 16

Well you answered my question and confused the heck out of me.

I put in an /etc/rc.d/rc.local script and it worked fine. This is what I needed.

I also removed my added scripts to rc5.d which did not appear to be doing anything: S56xinetd
and yes xinetd is running anyway - GREAT.

However, I also waded through the systemd man pages for quite a while and remain baffled on how these scripts work.

I am quite content to have rc.local do the work as it is just fine, but I sure would like to know how the new systemd init works. Can you point to some online documents or which man pages will start at the top??

Many thianks. :=]
Reply With Quote
Reply

Tags
fedora, fedora 16 boo scripts, rcd, scripts, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup Scripts Help FriedChips Using Fedora 9 20th September 2011 10:36 PM
Startup Scripts on F15 Krittis Using Fedora 7 12th August 2011 03:11 PM
xsession startup scripts COKEDUDE Using Fedora 5 22nd June 2011 03:33 AM
Help with Startup Scripts osikes Using Fedora 3 27th February 2009 03:24 AM
Startup Scripts? I think. keeler1 Programming & Packaging 7 7th March 2007 06:11 AM


Current GMT-time: 18:02 (Thursday, 24-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat