How to shutdown Pogo plug properly?

This forum is for all other ARMv5 devices

How to shutdown Pogo plug properly?

Postby thebaltant » Mon Apr 16, 2012 2:33 am

IS there a way to shuto down pogo plug properly like how we shutodown windows,so far i just pull the plug once the downloads are completed and iam afraid that it might hurt the plug so is there a way to shutdown and reboot my pogo plug?
thebaltant
 
Posts: 4
Joined: Sun Apr 01, 2012 2:40 am

Re: How to shutdown Pogo plug properly?

Postby scorp » Mon Apr 16, 2012 11:06 am

commandline:

/sbin/shutdown -r -t 0(reboot in 0 seconds)
/sbin/poweroff . .. power ... off :)
scorp
 
Posts: 21
Joined: Fri Dec 09, 2011 5:59 pm

Re: How to shutdown Pogo plug properly?

Postby WarheadsSE » Mon Apr 16, 2012 12:18 pm

Add this to the list
/sbin/shutdown -h -t 0 now
/sbin/halt

`shutdown -r` will reboot.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to shutdown Pogo plug properly?

Postby dinjo » Tue Apr 17, 2012 11:16 am

Is -t 0 required ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: How to shutdown Pogo plug properly?

Postby bob8889 » Tue Apr 17, 2012 2:05 pm

When using shutdown, -t is required. 0 is the number of seconds.

'shutdown -t 0' = shutdown immediately
bob8889
 
Posts: 16
Joined: Mon Jul 11, 2011 12:43 am

Re: How to shutdown Pogo plug properly?

Postby hydro » Tue Apr 17, 2012 9:22 pm

[-t sec] is NOT required and sec is NOT the number of seconds to wait before rebooting. It is the number of seconds shutdown waits before processes that did not terminate via the TERM signal are finally killed via the KILL signal. Type man shutdown to understand how the time to wait before rebooting is specified.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: How to shutdown Pogo plug properly?

Postby bob8889 » Tue Apr 17, 2012 11:56 pm

I could be wrong but I've tried to shutdown using just the command "shutdown" and an error is displayed:

** the "time" argument is mandatory! (try "now") **

The -t parameters on the help for shutdown is displayed as follows:
-t secs: delay between warning and kill signal.

To me that means immediately but I could be wrong.

I usually use "shutdown -t now" or "poweroff"
bob8889
 
Posts: 16
Joined: Mon Jul 11, 2011 12:43 am

Re: How to shutdown Pogo plug properly?

Postby tomcheng76 » Wed Apr 18, 2012 1:29 am

i always use shutdown -h now / poweroff
for reboot, use shutdown -r now
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: How to shutdown Pogo plug properly?

Postby dinjo » Wed Apr 18, 2012 4:45 am

My point of asking was since we should allow nice killing of process rather than force killing
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: How to shutdown Pogo plug properly?

Postby hydro » Wed Apr 18, 2012 6:43 am

@bob8889
$this->bbcode_second_pass_quote('', '
')Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message]

The time argument can have different formats. First, it can be an absolute time in the format hh:mm,
in which hh is the hour (1 or 2 digits) and mm is the minute of the hour (in two digits). Second, it
can be in the format +m, in which m is the number of minutes to wait. The word now is an alias for
+0.

Note that time is not sec.
$this->bbcode_second_pass_quote('dinjo', 'M')y point of asking was since we should allow nice killing of process rather than force killing

shutdown always allows processes to terminate properly first. It's probably advisable to increase (or rather: not to decrease) the number of seconds init waits before leftover processes are finally killed. I'v read somewhere the default value for the -t option is 5 seconds, so not using -t should be safe enough.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 7 guests