Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2002 11:41:47 -0400
From:      "Brian P. Trotter" <btrotter@pobox.com>
To:        "David Rhodus" <sdrhodus@kyblue.com>, <freebsd-newbies@freebsd.org>
Subject:   Re: Need Apache and ddclient to start at boot
Message-ID:  <013f01c20339$83d3a4e0$b701010a@chtlt033>
References:  <010601c20329$ab788520$b701010a@chtlt033> <028701c20335$d9146e20$1506810a@asgidavid>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
That worked like a charm.

While doing that, I also noticed that the ddclient file did not have a .sh extension like all the other files in that directory. I renamed it to ddclient.sh, rebooted the server, and both httpd and ddclient are auto-starting now.

Many thanks for your help.


Brian


  ----- Original Message ----- 
  From: David Rhodus 
  To: Brian P. Trotter ; freebsd-newbies@freebsd.org 
  Sent: Friday, May 24, 2002 11:15 AM
  Subject: Re: Need Apache and ddclient to start at boot


  Might try

  chmod +x /usr/local/etc/rc.d/httpdstart.sh

  ciao,
  Dave
    ----- Original 
    ----- Original Message ----- 
    From: Brian P. Trotter 
    To: freebsd-newbies@freebsd.org 
    Sent: Friday, May 24, 2002 9:48 AM
    Subject: Need Apache and ddclient to start at boot


    I have a fresh install of FreeBSD 4.5 on my server. I have installed Apache and ddclient (Dynamic DNS app) installed. I can manually start each of these applications, but I can not get them to start automatically. I placed a copy of the ddclient script in the /usr/local/etc/rc.d/ directory, but it doesnt start. I have to manually go to that directory and run that file to start it.

    As far as Apache, I created a file called httpdstart.sh, used an editor and placed:
    /usr/local/apache2/bin/apachectl start
    inside the file, and also put it in the rc.d directory. It doesnt start either, but I assume that is because of something I am doing wrong.

    Can someone enlighten me on the proper procedure for doing this?



    Thanks,
    Brian T.
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4915.500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>That worked like a charm.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>While doing that, I also noticed that the ddclient 
file did not have a .sh extension like all the other files in that directory. I 
renamed it to ddclient.sh, rebooted the server, and both httpd and ddclient are 
auto-starting now.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Many thanks for your help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Brian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=sdrhodus@kyblue.com href="mailto:sdrhodus@kyblue.com">David 
  Rhodus</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=btrotter@pobox.com 
  href="mailto:btrotter@pobox.com">Brian P. Trotter</A> ; <A 
  title=freebsd-newbies@freebsd.org 
  href="mailto:freebsd-newbies@freebsd.org">freebsd-newbies@freebsd.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 24, 2002 11:15 AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Need Apache and ddclient to 
  start at boot</DIV>
  <DIV><BR></DIV>
  <DIV>
  <DIV><FONT face=Arial size=2>Might try</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>chmod +x 
  /usr/local/etc/rc.d/httpdstart.sh</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>ciao,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Dave</FONT></DIV>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original </DIV></BLOCKQUOTE></DIV>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=btrotter@pobox.com href="mailto:btrotter@pobox.com">Brian P. 
    Trotter</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A 
    title=freebsd-newbies@freebsd.org 
    href="mailto:freebsd-newbies@freebsd.org">freebsd-newbies@freebsd.org</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 24, 2002 9:48 
AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> Need Apache and ddclient to 
    start at boot</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial size=2>I have a fresh install of FreeBSD 4.5 on my 
    server. I have installed Apache and ddclient (Dynamic DNS app) installed. I 
    can manually start each of these applications, but I can not get them to 
    start automatically. I placed a copy of the ddclient script in the 
    /usr/local/etc/rc.d/ directory, but it doesnt start. I have to manually go 
    to that directory and run that file to start it.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>As far as Apache, I created a file called 
    httpdstart.sh, used an editor and placed:</FONT></DIV>
    <DIV><FONT face=Arial size=2>/usr/local/apache2/bin/apachectl 
    start</FONT></DIV>
    <DIV><FONT face=Arial size=2>inside the file, and also put it in the rc.d 
    directory. It doesnt start either, but I assume that is because of something 
    I am doing wrong.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Can someone enlighten me on the proper 
    procedure for doing this?</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
    <DIV><FONT face=Arial size=2>Brian 
T.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?013f01c20339$83d3a4e0$b701010a>