Thanks for your reply, you are correct at all points.
We all appreciate the time you guys spend documenting these things for the
community. I chose your document because I have little or no Linux
experience (1Week), and the INSTALL and FAQ documents were a bit above my
head.  Thanks for your HOWTO!
I have included some info on my Slackware file structure. It may help
clarify the document for Slackware users. qmail-start-stop-script.txt and
support files of the /etc/rc.d directory.  rc.local-Startup file  and
rc.0-stop script.
I also have some issues with the links, since the rc.? are files and not
directories.
I appreciate your help.
Mark Thomas.

See Below: ((((((---->>>>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Dave Sill
Sent: Saturday, September 18, 1999 1:27 PM
To: [EMAIL PROTECTED]
Cc: Mark Thomas
Subject: Re: Installation Quesiton on Qmail. init.d directory and qmail
script file.

Mark Thomas <[EMAIL PROTECTED]> wrote:
>
> I). I am installing qmail 1.03 from Dave Sill's "Life with Qmail" dated
July
> 21, 1999.  I am in section # 2.8.2 System Startup Files, and it says to
> install a script file I just created "qmail" to launch qmail at boot into
my
> init.d directory.
> The document says it should be in one of the following locations:
> /etc/init.d
> /etc/rc.d/init.d
> /sbin/init.d
> I have no such directory on my system. (Slackware 3.6)

LWQ says "should" because it's impossible to cover every possibility.
((((((---->>>>  I attached a text file with info about the rc.d directory
((((((---->>>> structure on Slackware.  Please review!

> It appears that Slackware uses /etc/rc.d for the initialization files.  I
> think the qmail script file that will start qmail on boot should be
located
> here? Can anyone verify this for me?
What's the structure of /etc/rc.d? What subdirectories does it have?
((((((---->>>> Structure included in the text file with info from above.

>         setuser (qmaill) cyclog /var/log/qmail &             ****** Is
> qmaill a typo, or variable of somekind?
qmaill is a user (in /etc/passwd) which you should have set up in 2.5.4.
((((((---->>>>  Yes, it was. I cut and pasted the text and didn't notice the
extra ((((((---->>>> character, in qmail(l)

>         setuser qmaill cyclog /var/log/qmail/(smtpd &)         ***********
> I have a qmail-smtpd file here.
Are you sure about that? LWQ certainly doesn't create a qmail-smtpd file
under /var/log/qmail.
((((((---->>>> Right again-> I guess I was just about frazzeled here! <g>

It's probably a good idea to read through the entire Installation section
before attempting one's first installation. I'll add a note to that effect.

((((((---->>>>  All except whats left could have been answered if I
((((((---->>>>  would have read the entire section prior to the sections
install.
((((((---->>>>  MarkT.

inittab

rc.0

rc.local

**********************************************************************
Would it be appropriate to add the:
"qmail start"  somewhere in the rc.local script (bottom section of file)? 
"qmail stop"   somewhere in the rc.0 or rc.6 local script (top section)?
ALSO:
Creating links at the bottom of 2.8.2:
ln -s ../init.d/qmail RCDIR/rc0.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc1.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc2.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc3.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc4.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc5.d/K30qmail
ln -s ../init.d/qmail RCDIR/rc6.d/K30qmail

With Slackware:
ln -s /etc/rc.d/qmail /etc/rc.d/rc.0    (K30qmail)
rc.0,4,6,K,N, and S are files. 
Do I need to manually enter some data in the rc.? files, or create some files in a 
location for the links?
***********************************************************************
--------------------------------------------------------------------------------
If Sendmail is currently installed, running the command 
"find RCDIR -name "*sendmail" -print" will give you numbers 
that should work for your system. 
I tried this also, the only files I have on my system that fit the 
*sendmail criteria was sendmail, setup.sendmail and REMOVE.sendmail.
--------------------------------------------------------------------------------
**I received this reply from my previous post.  It gives some info on Slackware.

Slackware doesn't use the System V-style init scripts that this
documentation refers to.  Slackware uses old-style /etc/rc.d scripts.

What this probably means is that you need to stick your qmail start/stop script 
somewhere else, then manually edit by hand the various scripts in /etc/rc.d to run the 
qmail start/stop script.  
Going from memory, /etc/rc.d/rc.local would be a good place to stick in the start 
script.  
I think /etc/rc.d/rc.shutdown would be a good place to stick in the stop script, to 
bring the system down during system shutdown.

In any case, you should read the contents of your /etc/inittab to see
which /etc/rc.d scripts get invoked at which time.  Then make appropriate changes.
---------------------------------------------------------------------
I found this documentation on Slackwares site:  There are other files that I didn't 
list here, you can see them at the bottom.
http://www.slackware.com/config/init.shtml
Slackware Linux uses the BSD-style file layout for its system initialization files. 
These files are organized and easy to edit. All of the system initialization files are 
stored in the /etc/rc.d directory. To prevent a script from executing at startup you 
can remove the execute permission on the file and Slackware will not execute it. 
rc.6 (also called rc.0)
This file is run when you shutdown or reboot the system. It unmounts all devices and 
stops daemons before rebooting or halting. 
rc.local
Local system initialization script. You can add to this file to execute something at 
the end of the boot process. 
-----------------------------------------------------------------------
Here is the directory structure under /etc/rc.d     

 drwxr-xr-x  11 root     root         3072 Sep 18 19:52   ../
   -rwxr-xr-x   1 root     root         2804 Sep 18 13:43   qmail*
  drwxr-xr-x   2 root     root         1024 Sep 18 13:25   ./
   -rwxr-xr-x   1 root     root         2387 Sep 18 13:25   #rc.6#*
   -rwxr-xr-x   1 root     root         2336 Sep 15 03:44   rc.inet1*
   -rwxr-xr-x   1 root     root          933 Sep 12 21:57   rc.local*
   -rwxr-xr-x   1 root     root          122 Sep 12 21:51   rc.font*
   -rwxr-xr-x   1 root     root         3139 Sep 12 21:37   rc.inet2*
   -rwxr-xr-x   1 root     root          158 Sep 12 21:37    rc.samba*
   -rwxr-xr-x   1 root     root          946 Sep 12 21:37    rc.atalk*
   -rwxr-xr-x   1 root     root           37 Sep 12 21:37     rc.httpd*
   -rwxr-xr-x   1 root     root         9059 Sep 12 21:35   rc.serial*
   -rwxr-xr-x   1 root     root         2376 Sep 12 21:35   rc.6*
   -rwxr-xr-x   1 root     root         1244 Sep 12 21:35   rc.K*
   -rwxr-xr-x   1 root     root         3770 Sep 12 21:35   rc.M*
   -rwxr-xr-x   1 root     root         5453 Sep 12 21:35   rc.S*
    -rw-r--r--   1 root     root         2239 Sep 12 21:35   rc.cdrom
   -rwxr-xr-x   1 root     root          396 Sep 12 21:35    rc.4*
lrwxrwxrwx   1 root     root            4 Sep 12 21:35      rc.0 -> rc.6*
   -rwxr-xr-x   1 root     root         4000 Sep 12 21:35   rc.pcmcia*
   -rwxr-xr-x   1 root     root           64 Sep 12 21:35     rc.ibcs2*
   -rwxr-xr-x   1 root     root         9669 Sep 12 16:06   rc.modules*
darkstar:/etc/rc.d# 

Reply via email to