Re: manuelles ldconfig nach Neustart notwendig

From: Marcus Frings <iam-est-hora-surgere(at)despammed.com>
Date: Sun, 25 Jul 2004 23:52:48 +0200

* Patrick Hess <patrick-hess(at)freenet.de> wrote:
> listen(at)danielgraupner.de schrieb:

>> wenn ich meine Kiste neu starte, dann beendet sich der apache
>> nach dem booten mit der Fehlermeldung, dass er bestimmte libs
>> nicht finden kann. Diese befinden sich in /usr/local/lib/apache2
>> -> ein ldconfig -m /usr/local/lib/apache2 behebt das ganze.

>> Nur ist es nicht eben praktisch, dass man den Cache nach jedem
>> Neustart neu bauen muß. Wie kann ich dieses Verhalten
>> beeinflussen, sprich dieses Verz. fest dazukonfigurieren?

> Normalerweise sollten Ports, die Libs in eigenen Verzeichnissen
> speichern, das "ldconfig -m" in einem rc-Skript ausführen. So legen
> z.B. KDE und die pkgtools unter /usr/local/etc/rc.d entsprechende
> Scripts an, die das ldconfig erledigen.

> Sie mal nach, ob der Apache auch so ein Skript ablegt hat. Eventuell
> muß du es noch umbenennen, so daß es auf .sh endet, sonst wird es
> nicht ausgeführt. Oder du modifizierst das Skript, mit dem du
> Apache startest, derart, daß dort zu Beginn ein "ldconfig -m"
> ausgeführt wird.

Kann nicht folgendes die Ursache sein?

Message-ID: <20040724150905.GA998(at)rogue.acs-et.com>

,----
| 20040724:
| The rc.d/loclpkg script now "does the right thing" with respect
| to ports rc.d scripts. The most disruptive change is that scripts
| ending in *.sh are sourced in the same shell as rc.d/localpkg (as
| opposed to a subshell) and may cause the script to end prematurely
| if a script calls exit. Some broken scripts may not recognize the
| 'fast' prefix to a command. The first problem can be fixed by simply
| renaming the script so that it doesn't have a '.sh' ending. Another
| temporary work-arround is to completely remove the 'PROVIDE' line
| from the script. If you notice a broken ports rc.d script please
| notify the maintainer. Legacy scripts should not be affected.
| __FreeBSD_version bumped to 502124.
|
| This update to the rc.d/localpkg attempts to normalize the behaviour
| or ports rc.d scripts with that of the base system scripts. This may
| break your ports scripts. Please report any breakage to the port's
| maintainer so the script can be fixed.
|
| Ports folks:
| Some tips on fixing scripts:
| 1. Use a return statement instead of exit in a '*.sh' script
| 2. Put the entire current contents of the script in a function and
| then execute that function in a subshell. For example:
| foo_script()
| {
| does something.
| }
| ( foo_script $*)
| 3. Install the script without a '.sh' ending
|
| I know this commit breaks the print/cups port and eik@ has said that the
| following ports are also broken:
|
| [...]
| www/apache13
| www/apache13+ipv6
| www/apache13-modperl
| www/apache13-modssl
`----

Gruß,
Marcus

-- 
"Tuba cum sonuerit dies erit extrema
et iudex advenerit vocabit sempiterna
electos in patria
prescitos ad inferna."
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 25 Jul 2004 - 23:57:35 CEST

search this site