Comment 14 for bug 1185866

Revision history for this message
In , Billie-gentoo (billie-gentoo) wrote :

(In reply to BT from comment #6)
> Thank you for looking into this issue. I tried some of your suggestions with
> the following results.
>
> - Without nohup, background 'if-then-else', without redirects
> Boot is delayed.
>
> - Without nohup, background only 'else', without redirects
> Boot is delayed.
>
> - With nohup, background only the 'else', redirect i/o to null
> Boot isn't delayed. udev debug shows 'exit with return code 0'. I'm assuming
> this means it was successful?
>
> I now use the following:
>
> if [ something ]; then blob; else /usr/bin/nohup
> /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM} >/dev/null 2>&1
> </dev/null & fi
>
> I think this is much better than redirecting output /run.

So nohup is required, I just did some quick tests on the command line. Also using /dev/null as redirection target was just an example. Using /var/log/hp should be better.

Do you have /var on a different partition? Maybe this is causing the write errors as the filesystem is not mounted when trying to write there.