View previous topic :: View next topic |
Author |
Message |
ryoseph n00b
Joined: 18 Jun 2005 Posts: 13 Location: Netherlands
|
Posted: Sat Jul 23, 2005 12:53 pm Post subject: exit wm 'clean' with shutdown or reboot [SOLVED] |
|
|
When i invoke 'sudo shutdown -h now' or 'sudo reboot -t now' from enlightenment (DR16), the pc does shutdown/reboot but not very attractive.
I would like to see how my services are being stopped etc. But what i see enlightenment gets killed all over the sudden. Then is see a ugly coloured-lines x-server dying.
What command should i invoke to shutdown from enlightenment the 'proper' way?
If that ain't possible, does the way things work now harm my system in anyway?
Great thanks for you're help!
Regards,
Sander
ps. If i logout from enlightenment and use gmd to shutdown, it does shut the server down nicely and shows how other services are being stopped...
Last edited by ryoseph on Sun Jul 24, 2005 11:44 am; edited 2 times in total |
|
Back to top |
|
|
Pithlit l33t
Joined: 27 Dec 2003 Posts: 887 Location: fuhen
|
Posted: Sat Jul 23, 2005 4:20 pm Post subject: |
|
|
First shutdown e16 and only then shutdown the system. _________________ If someone solves a problem for you say thanks... and put [SOLVED] in the title! |
|
Back to top |
|
|
ryoseph n00b
Joined: 18 Jun 2005 Posts: 13 Location: Netherlands
|
Posted: Sat Jul 23, 2005 8:45 pm Post subject: |
|
|
Thanks for you're reply.
You're solutions is that where I was already affraid of . Its not really possible to shutdown with only one click from enlightenment...
I guess i'll place [SOLVED] in my header then. But i still hope someone around here knows a working solutions to this small problem |
|
Back to top |
|
|
svyatogor Retired Dev
Joined: 13 Feb 2003 Posts: 186 Location: Kingdom of Kells
|
Posted: Sun Jul 24, 2005 10:14 am Post subject: |
|
|
You could create a menu entry, which would do:
Code: |
killall enlightenment && sudo poweroff
|
|
|
Back to top |
|
|
ryoseph n00b
Joined: 18 Jun 2005 Posts: 13 Location: Netherlands
|
Posted: Sun Jul 24, 2005 11:07 am Post subject: |
|
|
Thanks for you're reply.
I already tried something like that. But the problem with this command is, that it kills enlightenment AND the command itself, so it never comes to the 'sudo poweroff' part...
I tried to manage this with a small script:
Code: | #!/bin/bash
# eesh 'exit -d' exits enlightenment without asking
eesh 'exit -d' && sudo poweroff
|
Then run the script with:
But this still doesnt solve the problem...
So anyone any idea??? |
|
Back to top |
|
|
ryoseph n00b
Joined: 18 Jun 2005 Posts: 13 Location: Netherlands
|
Posted: Sun Jul 24, 2005 11:42 am Post subject: |
|
|
Still not satisfied with 'not being able to shutdown/reboot from enlightenment directly' i searched for a nice working solution and ... FOUND IT
I use gdm. Somehow 'sudo /etc/init.d/xdm stop' doesnt always do the job properly (for instance init.d says gdm ain't running...). But with '/usr/sbin/gdm-stop' the same thing can be achieved (for those not using gmd but kdm or entrance a command like this would proberly also exist).
First i created these two small scripts:
reboot.sh:
Code: |
#!/bin/bash
# eesh 'exit -d' exits enlightenment without asking
eesh 'exit -d' && sudo /usr/sbin/gdm-stop && sudo init 6 |
poweroff.sh:
Code: | #!/bin/bash
# eesh 'exit -d' exits enlightenment without asking
eesh 'exit -d' && sudo /usr/sbin/gdm-stop && sudo init 0 |
Finally i have added the following two lines in my file.menu (enlightenment menu config file):
Code: | " Reboot System" "~/.icons/small/reboot.png" exec "nohup ~/bin/reboot.sh"
" Shutdown System" "~/.icons/small/shutdown.png" exec "nohup ~/bin/poweroff.sh" |
Works like a charm |
|
Back to top |
|
|
|