Paul Slootman <[EMAIL PROTECTED]> wrote: > Strange that the second "restart" in your example didn't do anything... > Anyway, the point is that a "restart" leaves wwwoffle in the same state > it was. This was done because of bug reports that the nightly restart > (for the log rotate and the rotating of the lasttime etc. dirs) resulted > in a wwwoffle that was not "online" in the morning, whereas it was > before the night.
However, I think the bug was fixed "multiple times": wwwoffle's cron scripts don't call the init script with "restart", in wwwoffle.logrotate.d, the corresponding code is commented. Moreover, it would be easy to provide a "restart-with-same-state" case in the init script, along with a standard, policy-compliant restart case. > Well, then you were *already* in autodial mode before the restart! > If you simply want to go offline: "wwwoffle -offline" That's impractical if you want to write a script that brings a couple of daemons into the state that corresponds to the new state of the system. You'd have to use such command lines for each of them, changing them when the syntax changes, while policy already documents a proper way to do it: The restart target of the init script... Regards, Frank -- Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX)

