LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-11-2004, 10:43 AM   #1
l2g
Member
 
Registered: Feb 2004
Distribution: Red Hat 9, Slackware 9.1
Posts: 55

Rep: Reputation: 15
init.d in Slackware


Is rc.d = init.d?
I need to copy XMail startup script to init.d...not really sure where is it.
Or do I rename it to rc.xmail and use rc.d?
 
Old 05-11-2004, 10:46 AM   #2
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Rep: Reputation: 15
I guess you could look at your folder names like that. Bear in mind that Slack operates differently to RH (assuming thats what you're trying to transfer from), and also RH uses other scripts and functions (checks/error/succes output, etc) to do things. Slackware uses lots of standard checks to do things, so you may have to make a script manually to do what RH does.

Also bear in mind that RH keeps binaries and libraries in different places to Slack/other distros.
 
Old 05-11-2004, 12:03 PM   #3
l2g
Member
 
Registered: Feb 2004
Distribution: Red Hat 9, Slackware 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
So...will it be OK to use rc.d for xmail.sh script? Do I need to do anything to
make it match Slackware way of handling startup scripts?
 
Old 05-11-2004, 02:35 PM   #4
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Rep: Reputation: 15
I don't know. I can't really speculate without seeing it.
 
Old 05-14-2004, 04:28 PM   #5
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Though slack uses BSD style init, it has a basic support for SysV style too. There is a script in /etc/rc.d that provides this (it's called rc.sysvinit, surprisingly )

I've never tried that, so unfortunately I'm unable to tell exactly how it works. Taking a quick look at the script seems to suggest that you simply create the appropriate runlevel dirs under rc.d (i.e. rc3.d for console level, rc4.d for X, rc0.d for shutdown etc.) and place the scripts to be run there with S (start) as the first letter of the filename of the script. Accordingly K (kill) as the first letter would stop whatever needs to be stopped.

Hope this helps

Last edited by alienDog; 05-14-2004 at 04:37 PM.
 
  


Reply


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
No init.d directory in Slackware 9.1 install bugsbunny Linux - Newbie 4 04-05-2004 06:31 PM
init.d on slackware geb256 Slackware 1 11-03-2003 05:22 PM
Where is 'init' run from? (slackware 9.0) itsjustme Slackware 12 05-18-2003 04:14 PM
Slackware init process.... hjles Slackware 2 01-30-2003 03:44 PM
Slackware init scripts. jpweston Slackware 1 04-18-2002 12:52 AM


All times are GMT -5. The time now is 08:00 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration