I have chmod halt so a user can type /sbin/halt and the computer will shut down.
Would it be possable to write a sh script to shutdown xfce 4 and then halt.
If so how would i safely kill xfce. in the script.
Not exactly sure what youre trying to say, but first of all chmoding halt shouldnt make it possible for all users to shut down, you have to edit /etc/sudoers /* think thats it */. Secondly, I assume you mean a script to leave runlevel 4 and X and then shut down? If so it would look something like this
#Custom shutdown script
-Hope this helps.:D
a have it so a user is able to run /sbin/halt. By just halting with a script if xfce going to shutdown safely.
|All times are GMT -5. The time now is 01:01 PM.|