[plug] Logrotate Killing Apache

Timothy White weirdit at gmail.com
Mon Oct 24 09:16:11 WST 2005


> > apache runs the modem control application
>
> I guess so :)
>
> Presumably pppd is inheriting the FDs from apache. Perhaps make a
> wrapper script with something like:
>
>    #!/bin/sh
>    exec 3>&- 4>&- 5>&- 6>&- 7>&- 8>&- 9>&- 10>&-
>    exec /usr/sbin/pppd "$@"
>
> Though I'm not convinced that this is what's making logrotate
> unhappy, but try it and see :)

I'm currently using PHP to start the dialup connection. (So
system('pon Optus');)
What does the first exec do in your script? I gather it closes the FD's?

I find it a /little/ stupid that FD's should be passed through a
system call in php, but I'll check when I get a chance.

Tim



More information about the plug mailing list