Date: Mon, 02 Jun 2008 22:13:15 -0500 From: Paul Schmehl <pschmehl_lists@tx.rr.com> To: freebsd-ports@freebsd.org Subject: Problems with startup scripts Message-ID: <765B879956FB90DA571FA609@Macintosh.local>
next in thread | raw e-mail | index | archive | help
To reply - figure it out MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========628ED6B4E6FA03BA9DD4==========" --==========628ED6B4E6FA03BA9DD4========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Recently someone more experienced than I stated that I should change the=20 construction of my startup scripts to use the following construction: command_args=3D"${port_conf} ${port_flags}" I dutifully changed several of my ports' startup scripts to use that=20 construction. Now one of my scripts has been reported as failing. The=20 problem is that it's trying to run $rc_flags twice. I've been scratching=20 my head for two days now, running sh-x startup_script to try and figure=20 out what was wrong with my script. Since I'm not that familiar with rc_subr, I ran some of my other ports=20 that used the same construction (but I've had reports of failures) through = the same process, saved the results to text files and then carefully=20 examined them. Imagine my surprise when I discovered that *all* of my startup scripts=20 were running double flags! So, I looked at /etc/rc.subr, and lo and behold: Line 670 of /etc/rc.subr has "$command $rc_flags $command_args" So, the question is, is this an error in rc_subr? Or was I misinformed=20 about the use of cammand_args? If the former, do I submit a PR? If the=20 latter, I have a lot of work to do. {{{sigh}}} I suspect it's the latter, which doesn't make me real happy, but I guess=20 I'll chalk it up to a learning experience. Paul Schmehl If it isn't already obvious, my opinions are my own and not those of my employer. --==========628ED6B4E6FA03BA9DD4========== Content-Type: application/pkcs7-signature Content-Transfer-Encoding: base64 MIIO7gYJKoZIhvcNAQcCoIIO3zCCDtsCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3 DQEHAaCCDFwwggV1MIIE3qADAgECAhAxxWbtEfZaUjaDZLSj5PqQMA0GCSqGSIb3 DQEBBQUAMIHqMScwJQYDVQQKEx5UaGUgVW5pdmVyc2l0eSBvZiBUZXhhcyBTeXN0 ZW0xHzAdBg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y52ZXJpc2lnbi5j b20vcnBhIChjKTk5MTIwMAYDVQQLEylDbGFzcyAyIENBIC0gT25TaXRlIEluZGl2 aWR1YWwgU3Vic2NyaWJlcjEtMCsGA1UEAxMkVGhlIFVuaXZlcnNpdHkgb2YgVGV4 YXMgYXQgRGFsbGFzIENBAhAxxWbtEfZaUjaDZLSj5PqQMAkGBSsOAwIaBQCggbEw GAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDgwNjAz MDMxMzIwWjAjBgkqhkiG9w0BCQQxFgQUg7FnkuEdBd4SvHXJhVPmrKUdCdQwUgYJ KoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAwDQYIKoZI hvcNAwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwDQYJKoZIhvcNAQEBBQAE gYApB0yKjqilsvztlD5PS2Hize9ItTXSSM4Ib44lCKxfgvLF10izC7SkwY1/4Iwg DMWR4JxW+6Q8zgBvhSHzwDx5Hv/aFP/VG0QrHedNysnG3Hjl6teP33ISF6fovcgo +dZRQ1QliNBHDji6Rg4FoKSjtY2T9RB3034f6+ZtXARrEQ== --==========628ED6B4E6FA03BA9DD4==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?765B879956FB90DA571FA609>