Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 06-22-2010, 12:59 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 24

Rep: Reputation: 15
Startup scripts don't get executed


I have this script that I want to be run on startup:


#chkconfig: 5 80 20
#description: sets default screen brightness

smartdimmer -s 10
I copied this file into /etc/rc.d/init.d and made it executable, then ran

chkconfig --add defbrt
and the symbolic link appeared in /etc/rc.d/rc5.d.

When I execute the script manually from the command line, the screen brightness goes down to the right level, but it just doesn't happen on startup.

I have tried doing a simple script like

touch test
and manually copying it into the correct folder, but that doesn't work either.

What am I doing wrong? When I did this on Debian (with update-rc.d, but essentially the same result) it worked fine.

Old 06-22-2010, 05:17 PM   #2
Senior Member
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Try adding the full path to the executable file (smartdimmer), like
/usr/local/bin/smartdimmer -s 10
Crone for example has different enviroment settings (like $PATH). Maybe init works the same.
Old 06-23-2010, 05:50 PM   #3
LQ Newbie
Registered: Feb 2010
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks; that was exactly it.


chkconfig, script, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do /rc.d scripts get executed? mfoley Slackware 6 10-04-2009 12:10 PM
How can an object file be executed without startup and housekeeping? Lawand Programming 3 09-23-2009 02:37 AM
Kill scripts not being executed upon reboot druidmatrix Red Hat 9 02-17-2009 09:03 PM
RHEL3: init scripts aren't executed dabang Red Hat 2 01-04-2007 08:54 AM
Simple script to be executed on startup. Korff Linux - General 2 06-03-2003 10:25 PM

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration