I have a perl/Tk program running in X which has a shutdown button. If
i startx and run said button it shuts down X and shuts down my box nice and
cleanly. If i have the respawn option set in my inittab like so:
# The default runlevel.
# System initialization.
# Things to run in every runlevel.
# Start X
co:2:respawn:/bin/su user -c /bin/xstart
It will reboot albeit not cleanly at all and leaves the /tmp/.X0-lock behind.
if i set the button to do a shutdown -h now it halts but X doesnt shutdown,
this method is also unclean and leaves the horrible lock file behind.
Anyone know why this is happening? I thought the shutdown command changes the