LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-17-2004, 02:58 PM   #1
meeble
LQ Newbie
 
Registered: Mar 2004
Distribution: RedHat / slackware
Posts: 13

Rep: Reputation: 0
Question Transitioning from RedHat


Hello list,

I have several RedHat 9 boxes and am looking to transition to slackware. I already have one installation of slackware, but are a little unsure at to how to transition some things. For one, I have this postgresql startup script that relies on the /etc/init.d, /etc/init.d/functions, and /etc/sysconfig/network. Is there someone on this forum who would be willing to modify this script for me to work on slackware? Even some advice would be great.

Also, can anyone explain how startup scripts work in slackware? I'm used to the /etc/init.d/ directory and the /etc/rc.d/ driectories. How do you guys work around installers that are counting on these directories?

Thanks,
Meeble
 
Old 03-17-2004, 03:30 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Can't answer all of that, but take a look at the slackware book:

http://www.slackware.com/book/index....urce=c623.html

Go down to the section:
"The /etc/rc.d Directory"
 
Old 03-17-2004, 05:42 PM   #3
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
Here is a very good FAQ about Slack:

http://wombat.san-francisco.ca.us/fa...c/cache/1.html

Here is good information regarding your question about Slackware startup scripts:

http://wombat.san-francisco.ca.us/fa.../cache/37.html

Let us know if that doesn't help you out.

A specific answer to your last question is to create the directories that something is expecting. For example, VMware wants an /etc/init.d and rcX.d directories under /etc. Just create them. Your Slackware system couldn't care less if they are there.

Also, you can read the comments in /etc/rc.d/rc.sysvinit to get more information.
 
Old 03-17-2004, 08:01 PM   #4
meeble
LQ Newbie
 
Registered: Mar 2004
Distribution: RedHat / slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by flyfishin
Let us know if that doesn't help you out.

A specific answer to your last question is to create the directories that something is expecting. For example, VMware wants an /etc/init.d and rcX.d directories under /etc. Just create them. Your Slackware system couldn't care less if they are there.
hey flyfishin,

yeah, that helps me understand the BSD style startup scripts better thanks! BUT...
I still can't get my postgresql startup script to work because it references /etc/rc.d/init.d/functions
and /etc/sysconfig/network. If anyone has any ideas, I would be very thankfull. I will post
the startup script here:
http://web.absmot.com/postgresql.txt
if anyone wants to take a look at it...

thanks,
meeble
 
Old 03-18-2004, 08:10 AM   #5
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
I don't have enough experience with bash scripting to quickly look at that script and modify it for Slackware. Plust I have no clue how you have Postgres installed on your box. Instead of fixing that one here is a much more maintainable one for Slackware, heck more maintainable for any platform.

#!/bin/sh

su - postgres -c "/pathtopostgresbindirectory/pg_ctl $1 -D /pathtopostgresdatadirectory -l
/pathtologfile"


This file is stored in /usr/local/sbin/lo_pg_ctl but you can put it wherever you desire and name it whatever you want. Then look at the rc.httpd that comes with Slackware. Replace the /usr/sbin/apachectl in that script with the path to the script above and save it as rc.postgresql and make it executable. Then modify rc.M and rc.6 to handle your new rc.postgresql script.
 
  


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
Networking to XP - transitioning MainframeGuy Linux - Newbie 30 10-25-2005 02:29 PM
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Enterprise 3 08-13-2005 12:28 PM
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Newbie 1 08-11-2005 04:11 PM
Transitioning from Windows XP to Fedora Ebisu_Dave Linux - Newbie 5 07-13-2005 12:04 PM
Transitioning from Mandrake to Slackware vrillusions Slackware 2 09-30-2003 09:21 PM

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

All times are GMT -5. The time now is 06:59 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