Re: Why /sbin/poweroff -fp?

Oliver Grawert <ogra-GeWIH/[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <1218710942.15073.4.camel@osiris>
hi,
On Mi, 2008-08-13 at 13:36 -0400, Warren Togami wrote:
> gtkgreet/greeter.c:    g_spawn_command_line_async("/sbin/poweroff -fp", 
> error);
> 
> Why poweroff -fp?  What is the benefit of this over plain poweroff?
> 
it powers off immediately, scoot and i added that at a time where we
didnt even have nbd swap support, nowadays i'd propose to change that
code to use telinit with the right runlevel as option instead and leave
the shutdown process to upstart (or sysvinit for distros still using
that :P) so things like nbd swap devices or possible stale mounts (i.e.
stuck ltspfs crap) are handled by teh distros shutdown process ... it
might take a little longer that way but adds a safety net ...

ciao
	oli

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEUEABECAAYFAkikDZsACgkQSsOT+6LQaTbW/QCdH9n0Yz48Ed7iBVEFbHGY1q1P
tCEAliwNAPOUI6kr9e2PsXdmUhfHbl0=
=DcvN
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.