Le lundi 13 septembre 2021 à 17:20 -0300, Gilberto F da Silva a écrit :
> On Sep 10, 2021 12:34:30PM −3, Leandro Guimarães Faria Corcete DUTRA:
> 10 set 2021 9:40 −3, Gilberto F da Silva:
> > No Slackware o halt desliga a máquina.
> 
> man halt:
> 
> ‘Note that on many SysV systems halt used to be synonymous
> to poweroff, i.e. both commands would equally result in
> powering the machine off. systemd is more accurate here,
> and halt results in halting the machine only (leaving
> power on)

Isso fala que *era* o caso em alguns SysV, mas que não é o caso no
systemd, e nada fala sobre o Slackware.



>> ¿Que diz o man do Slackware?
>
> NOTES
>
> Under older sysvinit releases, reboot and halt should never be
> called directly. From release 2.74 on halt and reboot invoke
> shutdown(8) if the system is not in runlevel 0 or 6. This means
> that if halt or reboot cannot find out the current runlevel (for
> example, when /var/run/utmp hasn't been initialized correctly and
> /var/run/runlevel does not exist) shutdown will be called, which
> might not be what you want.  Use the -f flag if you want to do a
> hard halt or reboot.
> 
> The -h flag puts all hard disks in standby mode just before halt
> or power-off. Right now this is only implemented for IDE drives. A
> side effect of putting the drive in stand-by mode is that the
> write cache on the disk is flushed. This is important for IDE
> drives, since the kernel doesn't flush the write cache itself
> before power-off.

Ainda não está claro.  Se isso é parte do man halt do Slackware, diz
apenas que chama o shutdown em algumas circunstâncias, mas não diz
com que parâmetros exatamente.  De qualquer modo, é irrelevante aqui
nesta lista de Debian…


-- 
/¯\
\ / +55 (61) 3546 7191 xmpp:leand...@jabber.org
 X  +55 (61) 99302 2691
/ \ BRAZIL GMT−3 https://useplaintext.email/#why-plaintext


Responder a