SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.