From owner-freebsd-questions Tue Apr 17 5:35:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mplspop3.mpls.uswest.net (mplspop3.mpls.uswest.net [204.147.80.13]) by hub.freebsd.org (Postfix) with SMTP id D64BB37B423 for ; Tue, 17 Apr 2001 05:35:43 -0700 (PDT) (envelope-from buzzwang@gamersgarrison.com) Received: (qmail 79706 invoked from network); 17 Apr 2001 12:35:34 -0000 Received: from mail.gamersgarrison.com (63.231.177.116) by mplspop3.mpls.uswest.net with SMTP; 17 Apr 2001 12:35:34 -0000 Received: from ecknick [63.231.177.117] by mail.gamersgarrison.com (SMTPD32-5.05) id A82B1F7200E4; Tue, 17 Apr 2001 07:33:47 -0500 Date: Tue, 17 Apr 2001 07:33:15 -0500 Message-ID: <000501c0c73a$94a44cc0$0501010a@ecknick> From: "Group Captain Buzzwang" To: freebsd-questions@FreeBSD.ORG Reply-To: Subject: Questions concerning startup / Local Package Initialization MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Content-Type: multipart/signed; boundary="----=_NextPart_000_0005_01C0C710.AA2305C0"; protocol="application/x-pkcs7-signature"; micalg=SHA1 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C0C710.AA2305C0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0006_01C0C710.AA2305C0" ------=_NextPart_001_0006_01C0C710.AA2305C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Ok, don't hate cause I'm relatively new. At least I'm moving away from MicroSuck, and I searched for a week before I had to ask a question. I've been using FreeBSD for awhile now and am fairly familiar with the overall system, but now I've decided to go a little deeper and use it as my web server. I've been trying for a couple days now to setup SlashCode (http://www.slashcode.com or http://slashdot.org) because I like the site features and layout. Don't worry, my question doesn't relate to that, but arose because of it. In order for /. to work, it requires mysql, apache, and their code (slash) to startup in that order at system boot. No problem; just wrote a short little script to start everything, put it in the rc.d directory and it works just fine. The problem arises when I shutdown or restart the system. I get an error/message saying that I'm using the old style rc scripts, and that I should change them to recognize the stop command. I've just finished digging around freebsd.org (spent a little over an hour) and I can't find a reference to this message anywhere. All I wanna know is two things: 1) What should an rc script/s look like? & 2) How do I right the script to start and stop these software elements in the way that freebsd likes? Well, ok, 3 things: 3) Should I be using rc.local or something else instead & how do I make that work? Post it here or mailto:buzzwang@gamersgarrison.com Thanks in advance! ------=_NextPart_001_0006_01C0C710.AA2305C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Ok, don't hate cause I'm relatively = new. At least I'm moving away from MicroSuck, and I searched for a week = before I had to ask a question.

I've been using FreeBSD for awhile now = and am fairly familiar with the overall system, but now I've decided to = go a little deeper and use it as my web server. I've been trying for a = couple days now to setup SlashCode (http://www.slashcode.com or http://slashdot.org) = because I like the site features and layout. Don't worry, my question = doesn't relate to that, but arose because of it. In order for /. to = work, it requires mysql, apache, and their code (slash) to startup in = that order at system boot. No problem; just wrote a short little script = to start everything, put it in the rc.d directory and it works just = fine.

The problem arises when I shutdown or = restart the system. I get an error/message saying that I'm using the old = style rc scripts, and that I should change them to recognize the stop = command. I've just finished digging around freebsd.org (spent a little = over an hour) and I can't find a reference to this message = anywhere.

All I wanna know is two things:
1) What should an rc script/s look = like? &
2) How do I right the script to start = and stop these software elements in the way that freebsd likes?

Well, ok, 3 things:
3) Should I be using rc.local or = something else instead & how do I make that work?

Post it here or mailto:buzzwang@gamersgarriso= n.com

Thanks in advance!

------=_NextPart_001_0006_01C0C710.AA2305C0-- ------=_NextPart_000_0005_01C0C710.AA2305C0 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMC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GF3dGUxHTAbBgNVBAsTFENlcnRpZmlj YXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44LjMwAgME LjIwCQYFKw4DAhoFAKCCAUkwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUx DxcNMDEwNDE3MTIzMzE1WjAjBgkqhkiG9w0BCQQxFgQUAYTHxnCzhEkZsF5k6kX3W1t9mXQwPAYJ KoZIhvcNAQkPMS8wLTAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDAHBgUrDgMCGjAKBggqhkiG9w0C BTCBqwYJKwYBBAGCNxAEMYGdMIGaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2VydGlm aWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAwLjguMzAC AwQuMjANBgkqhkiG9w0BAQEFAASBgIfFY3473qg7EiQO84IAaZwN4fMPv/27h3ONdN/BKVbCL1gy mAB10eG3Lr/HY3RAhbgIOMtP/dXnnKxxvw6rrilJr5ZM7XU+s6fjY21bshN+xug2o9NYMkKu1AMk Y2hOOfAX4la02wxFw8dSOZGYtZ9P53p1JxJqXaO/EDOP7bU0AAAAAAAA ------=_NextPart_000_0005_01C0C710.AA2305C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message