Menu

#217 bb_start on RHEL waits for user interaction

open
nobody
5
2006-01-18
2006-01-18
No

On RedHat Enterprise Linux ES 4, the script bb_start
waits for keyboard interaction. Here is an example
session::

------------------
# service bigsister start
Starting Big Sister ...
Agent uxmon
OK
Messages:
Agent uxmon: Do you want to choose a different one? [n]
------------------

It required hitting Enter for the process to start.
The solution was to replace the use of "su" with
"runuser". The problem appears to be related to SELinux.

I solved my problem with a simple substitute of the
command. It would seem the correct solution would be
to check for the existence of the "runuser" command.
If it exists, use it. Otherwise stick to "su".

# diff bb_start.orig bb_start
214c214
< exec( "su", "-", "$user", "-c", $cmd );
---
> exec( "runuser", "-", "$user", "-c", $cmd );

Discussion


Log in to post a comment.

MongoDB Logo MongoDB