LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-19-2004, 07:07 AM   #1
senthilkumar
LQ Newbie
 
Registered: Apr 2004
Location: India
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
how to start a service at boot


Hi all,
I have created a script named rc.abc and place in the directory /etc/rc.d/rc.abc . But while the machine boots , this service is not getting started. I have even given the permision has 777. But when I try to execute it normally ( /etc/rc.d/rc.abc) it is working. Can any one help me out.

cheers
senthilkumar
 
Old 07-19-2004, 07:22 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I always run my own scripts by first creating one, then changing it's permissions (you have done this already) and putting it in some place I know. and then I just add a line into some existing init-script (like rc.3 or rc.5 or rc.local etc.), that runs the script when the rc.something is run at boot
 
Old 07-19-2004, 07:33 AM   #3
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
To start a service abc modify your /etc/rc.d/rc.M and add something like this:
Code:
# Start abc service
if [ -x /etc/rc.d/rc.abc ]; then
  . /etc/rc.d/rc.abc start
fi
And to stop the service at reboot or shutdown add something like this to rc.K
Code:
# Stop the abc service
if [ -x /etc/rc.d/rc.abc ]; then
  . /etc/rc.d/rc.abc stop
fi

Last edited by rotvogel; 07-19-2004 at 07:34 AM.
 
  


Reply



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 to get service to start at boot zaichik Linux - Newbie 12 08-27-2008 09:15 PM
BOINC as a service to start at boot purelithium Linux - General 14 11-18-2005 09:04 PM
Network service start at boot? King of Japan Linux - Networking 2 09-01-2005 10:23 AM
NEWBIE: The boot is locked on 'start SMB service'. Please HELP ME! edika Linux - General 2 05-06-2004 02:26 AM
start the service for every boot time yuva_mca Linux - General 3 03-09-2004 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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