Samab and init.d

Reid, Rowan (GSP) ReidR at gspinc.com
Thu Dec 16 16:30:27 GMT 1999



I think my runlevel is set to 2, you 
change that with init = ? or somethign like
that.  I don't have x installed, previoulsy
going to runlevel 3 would start xdm, or kdm
I still don't understand why you wouldn't want to
put it in initd.conf I'm still getting used to 
linux so bear with me.



Rowan [TSS]
Gerber Scientific Products
http://www.gspinc.com



-----Original Message-----
From: Timo Gatsonides [mailto:timo at mail.gatso.nl]
Sent: Thursday, December 16, 1999 11:28 AM
To: 'Reid, Rowan (GSP)'
Subject: RE: Samab and init.d




Yep, that's right....
BUT: only things starting with S, will (S)tart, a K, indicates (K)illing the
process.
(Have a look at runlevel 0, and see what's killed/started).


> -----Original Message-----
> From: Reid, Rowan (GSP) [mailto:ReidR at gspinc.com]
> Sent: Thursday, December 16, 1999 5:19 PM
> To: 'Timo Gatsonides'
> Subject: RE: Samab and init.d
>
>
>
>
> I have done this before using  SysV, I think.
> basically everything in the /etc/rc.d/rc3.d folder will
> start when run level three is initialized ?
>
>
>
> Rowan [TSS]
> Gerber Scientific Products
> http://www.gspinc.com
>
>
>
> -----Original Message-----
> From: Timo Gatsonides [mailto:timo at mail.gatso.nl]
> Sent: Thursday, December 16, 1999 11:10 AM
> To: ReidR at gspinc.com
> Subject: RE: Samab and init.d
>
>
>
>
> Start it using a script, otherwiise samba will have to
> startup every time
> someone connects (if using inetd).
> If you don't want to start it up manually, make a symlink in
> /etc/rc.d/rc3.d
> (rc3= runlevel 3, most used) that starts samba.
>
> something like:
>
> ln -s /../smb S20smb
>
> which means (S)tart samba as (20)th , make sure that you
> start it AFTER the
> network has started (S05network in most SuSE).
>
> the ../smb file looks something like this (at least for my Suse6):
>
> "
> # Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All
> rights reserved.
> #
> # Author: Bastian Epting, StarDivision GmbH <be at stardivision.de>
> #      Florian La Roche, <florian at suse.de>
> #      Volker Lendecke, <vl at suse.de>
> #
>
> . /etc/rc.config
>
> # Determine the base and follow a runlevel link name.
> base=${0##*/}
> link=${base#*[SK][0-9][0-9]}
>
> # Force execution if not called by a runlevel directory.
> test $link = $base && START_SMB=yes
> test "$START_SMB" = "yes" || exit 0
>
> # The echo return value for success (defined in /etc/rc.config).
> return=$rc_done
> case "$1" in
>     start)
>         echo -n "Starting SMB services:"
>         startproc /usr/sbin/nmbd -D || return=$rc_failed
>         startproc /usr/sbin/smbd -D || return=$rc_failed
>         echo -e "$return"
>         ;;
>     stop)
>         echo -n "Shutting down SMB services:"
>         killproc -TERM /usr/sbin/nmbd || return=$rc_failed
>         killproc -TERM /usr/sbin/smbd || return=$rc_failed
>         echo -e "$return"
>         ;;
>     restart|reload)
>         $0 stop  &&  $0 start  ||  return=$rc_failed
>         ;;
>     status)
>         echo -n "Checking for service smb: "
>         checkproc /usr/sbin/nmbd && echo -n "OK " || echo -n
> "No process "
>         checkproc /usr/sbin/smbd && echo "OK " || echo "No process"
>         ;;
>     *)
>         echo "Usage: $0 {start|stop|restart|reload|status}"
>         exit 1
> esac
>
> # Inform the caller not only verbosely and set an exit status.
> test "$return" = "$rc_done" || exit 1
> exit 0
>
> "
>
>
> > -----Original Message-----
> > From: samba at samba.org [mailto:samba at samba.org]On Behalf Of
> Reid, Rowan
> > (GSP)
> > Sent: Thursday, December 16, 1999 4:53 PM
> > To: Multiple recipients of list SAMBA
> > Subject: Samab and init.d
> >
> >
> >
> >
> >
> >
> > Is it better to start Samba using in initd, or to use the
> > script, much like
> > the one provided by SuSE.   ?? so far I have used the script,
> > but I don't
> > like the fact of having to start samba manually. I would much
> > prefer to
> > see it run as a service. just to confirm all it really
> > involves is starting
> > smbd and nmbd
> >
> >
> > Rowan [TSS]
> > Gerber Scientific Products
> > http://www.gspinc.com
> >
> >
>


More information about the samba mailing list