Trevor Watson writes: > Hi, > > I hope this is the correct alias to use for this question. If not, please > feel > free to direct me elsewhere. > > We have an application which applies patches to a system in single-user mode. > > For various (mostly historical) reasons, it runs as a legacy app in > single-user mode, and we have found that the user cannot use Ctrl-C on it on > Solaris 10, although this works perfectly well on S8 & 9. > > I appreciate that the application is not very well behaved, but is there any > way we can configure the legacy SMF starter to allow the app to receive > Ctrl-C > from the console? > > Thanks, > Trev
Trev, The reason that you cannot use Ctrl-C in Solaris 10 is that SMF runs legacy services without a control terminal. Any output that was sent to the console in pre-SMF days is now captured in the appropriate milestone log file in /var/svc/log. The reason that SMF does this is so that it can do as many things in parallel as possible. Storing service output in the appropriate log file makes it easier to diagnose failures and avoids a jumble of messages on the console. Starting services in parallel allows for faster boots. I've been unable to find any way to override this behavior for your application. Since you are running in single-user mode, however, you can login and use kill -3 on the process. tom