ilovesolaris10
Programmer
In solaris10 update 1, is there a way to launch a script once the GUI login screen comes up?
The script I want to launch is simple and only contains "poweroff", so what I want is for the server to start up, hit the login, and then power off.
Right now I have added /etc/rc3.d/S99shutdown that contains "#!/bin/sh; poweroff" and it seems like this gets called right as the GUI is being fired up, but the poweroff is faster, so no GUI ever actually shows.
I really don't have to have the GUI, but what I do want is to be sure that my shutdown script is happening as late as possible in the boot process. Ideally, it would be the last thing to run.
The script I want to launch is simple and only contains "poweroff", so what I want is for the server to start up, hit the login, and then power off.
Right now I have added /etc/rc3.d/S99shutdown that contains "#!/bin/sh; poweroff" and it seems like this gets called right as the GUI is being fired up, but the poweroff is faster, so no GUI ever actually shows.
I really don't have to have the GUI, but what I do want is to be sure that my shutdown script is happening as late as possible in the boot process. Ideally, it would be the last thing to run.