Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
exit wm 'clean' with shutdown or reboot [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ryoseph
n00b
n00b


Joined: 18 Jun 2005
Posts: 13
Location: Netherlands

PostPosted: Sat Jul 23, 2005 12:53 pm    Post subject: exit wm 'clean' with shutdown or reboot [SOLVED] Reply with quote

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
View user's profile Send private message
Pithlit
l33t
l33t


Joined: 27 Dec 2003
Posts: 887
Location: fuhen

PostPosted: Sat Jul 23, 2005 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
ryoseph
n00b
n00b


Joined: 18 Jun 2005
Posts: 13
Location: Netherlands

PostPosted: Sat Jul 23, 2005 8:45 pm    Post subject: Reply with quote

Thanks for you're reply.

You're solutions is that where I was already affraid of :cry: . 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 :wink:
Back to top
View user's profile Send private message
svyatogor
Retired Dev
Retired Dev


Joined: 13 Feb 2003
Posts: 186
Location: Kingdom of Kells

PostPosted: Sun Jul 24, 2005 10:14 am    Post subject: Reply with quote

You could create a menu entry, which would do:

Code:

killall enlightenment && sudo poweroff
Back to top
View user's profile Send private message
ryoseph
n00b
n00b


Joined: 18 Jun 2005
Posts: 13
Location: Netherlands

PostPosted: Sun Jul 24, 2005 11:07 am    Post subject: Reply with quote

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:
Code:
nohup poweroff.sh

But this still doesnt solve the problem...

So anyone any idea???
Back to top
View user's profile Send private message
ryoseph
n00b
n00b


Joined: 18 Jun 2005
Posts: 13
Location: Netherlands

PostPosted: Sun Jul 24, 2005 11:42 am    Post subject: Reply with quote

Still not satisfied with 'not being able to shutdown/reboot from enlightenment directly' i searched for a nice working solution and ... FOUND IT :lol:

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 :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum