new su behaviour & exit status

2006-03-31 Thread Nico Golde
Hi, because of the new su behaviour its no longer possible to get any exit status from a command executed with su -c. If you use init scripts which need to invoke su and you dont want to depend on sudo the init script will no longer recognize segfaults or other failures in execution and will al

Re: new su behaviour & exit status

2006-04-01 Thread Christian Perrier
Quoting Nico Golde ([EMAIL PROTECTED]): > Hi, > because of the new su behaviour its no longer possible to > get any exit status from a command executed with su -c. > If you use init scripts which need to invoke su and you dont > want to depend on sudo the init script will no longer > recognize s

Re: new su behaviour & exit status

2006-04-01 Thread Andreas Metzler
Nico Golde <[EMAIL PROTECTED]> wrote: > Hi, > because of the new su behaviour its no longer possible to > get any exit status from a command executed with su -c. [...] > Does anyone knows a fix for this or have any useful links on > how to "workaround" this behaviour? You could simply use start-

Re: new su behaviour & exit status

2006-04-01 Thread Nico Golde
Hi, * Christian Perrier <[EMAIL PROTECTED]> [2006-04-02 19:10]: > Quoting Nico Golde ([EMAIL PROTECTED]): > > Hi, > > because of the new su behaviour its no longer possible to > > get any exit status from a command executed with su -c. > > If you use init scripts which need to invoke su and you do