Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-09-2016, 02:13 AM   #1
Senior Member
Registered: Jan 2015
Posts: 1,211

Rep: Reputation: Disabled
Post Run a script at startup.

I created a script in "/etc/init.d" with the name "" and add below lines to it :
systemctl start network

and after it I execute "chmod +x" and also create a link of my script in "/etc/rc.d" too but after I rebooted my Fedora the script can't executed.

Any idea?

Old 07-09-2016, 02:33 AM   #2
Senior Member
Registered: Jan 2015
Posts: 1,211

Original Poster
Rep: Reputation: Disabled
Problem Solved when I created a "rc.local" file under "/etc/rc.d" and put my command to it.


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
Need to run script at startup. pinga123 Linux - Newbie 6 02-04-2010 12:05 PM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 03:53 AM
'run as' from rc.5 startup script davee Linux - General 2 03-10-2005 03:36 AM
Run a script at startup iain.ross Linux - Newbie 8 08-27-2004 05:03 PM
How to run script on startup Angelis Linux - General 1 11-16-2003 06:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 AM.

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