Re: starting services?

From: Paul Schmehl (pauls_at_utdallas.edu)
Date: 11/17/05

  • Next message: Ian Smith: "strange msg lines.."
    Date: Thu, 17 Nov 2005 11:51:05 -0600
    To: Gerry Freymann <lists@interpool.ca>, freebsd-questions@freebsd.org
    
    

    --On Thursday, November 17, 2005 09:19:09 -0500 Gerry Freymann
    <lists@interpool.ca> wrote:

    > On Thu, 17 Nov 2005 08:45:14 -0500
    > "Lonnie Cumberland" <lonnie@outstep.com> wrote:
    >
    >> I have just installed the Samba3 via the packages in the
    >> /stand/sysinstall but am not clear on how to start the daemon. I have
    >> had a lot of experience with Linux but have not learned a lot about
    >> FreeBSD yet and am working on it.
    >
    > Welcome to FreeBSD. You didn't mention what version you are using, so I
    > can only speak definitively on v4.
    >
    > If you installed via the ports/packages, it should have dropped a start
    > up script in /usr/local/etc/rc.d (which is where a lot of the start
    > up/shut down scripts go for various programs).
    >
    > You may have something in there called samba.sh.sample. If you copy it or
    > rename it to samba.sh it will automatically start and stop samba for you
    > as needed.
    >
    Most likely you are going to have to also edit /etc/rc.conf. Look at the
    script. If it contains instructions to edit /etc/rc.conf, follow them, or
    you won't be able to start the service.

    Usually, a startup script will use rc.subr, and it will require an entry in
    /etc/rc.conf like this;
    samba_enable="YES"

    It may also require an entry for any additional flags that you want to use
    on startup and possibly for the location of the conf file, but all that
    should be noted in the startup script.

    Paul Schmehl (pauls@utdallas.edu)
    Adjunct Information Security Officer
    University of Texas at Dallas
    AVIEN Founding Member
    http://www.utdallas.edu/ir/security/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Ian Smith: "strange msg lines.."

    Relevant Pages

    • [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-06:01.jail
      ... The FreeBSD Project ... The names of several internal variables in the jail startup script ... after the correction date using cvsupor cvs. ...
      (freebsd-announce)
    • Re: Slow NFS Writes, Network Errors
      ... Apparently there's debate about whether to use ndd in a startup script ... or to edit ce.conf directly; I'll investigate more and decide for ...
      (comp.unix.solaris)
    • Re: Slow NFS Writes, Network Errors
      ... > Apparently there's debate about whether to use ndd in a startup script ... > or to edit ce.conf directly; I'll investigate more and decide for ...
      (comp.unix.solaris)
    • Re: how do I verify how sshd is starting?
      ... I haven't seen anyone start sshd from rc.d in quite a while. ... a startup script in /usr/local/etc/rc.d and it has execute perms, ... The FreeBSD handbook also has a lot of good information. ... FreeBSD books nowadays, and I can't say I know of one that doesn't ...
      (freebsd-questions)
    • Re: Making Route Delete Persistent
      ... If you are able to run "route delete" on the machine to delete the route ... you may consider using a startup script to allow the machine run ... Refer to the following article to assign the bat file as ... run the bat file to delete the route entry. ...
      (microsoft.public.windows.server.networking)