Linux.com

Home Linux Community Forums Linux Distributions Slackware Command malfunction In slackware ?

Command malfunction In slackware ?

Link to this post 21 May 11

linustorvalds wrote:

[b]mfillpot wrote:[/b]
[quote]"shutdown -P halt" in both runlevels 3 and 4 is just pushing me to init 1 (single user mode).

After reviewing the source for the shutdown program I found that it is written to change the system to runlevel1 and not halt the system. If you wish to actually shutdown the system you can use "shutdown -h now" or poweroff.

but matt, why they changed the command's way of working too?. It is supposed to be common with all distro, right ?[/quote]

In one plain word: no

That's the beauty of opensource: you can change as many things as you like the way you like :)

You've hit one of the things that make Slackware a different distro, that's all :)

Regards

Link to this post 21 May 11

linustorvalds wrote:

[b]mfillpot wrote:[/b]
[quote]"shutdown -P halt" in both runlevels 3 and 4 is just pushing me to init 1 (single user mode).

After reviewing the source for the shutdown program I found that it is written to change the system to runlevel1 and not halt the system. If you wish to actually shutdown the system you can use "shutdown -h now" or poweroff.

but matt, why they changed the command's way of working too?. It is supposed to be common with all distro, right ?[/quote]
Actually they did not change the command, the source I reviewed is the official source of sysvinit. It may be that the other distros changed It themselves to fix the command.

The code for sysvinit and shutdown are quite simple you can always modify the code yourself to make it behave as you want and build a custom package.

Link to this post 21 May 11

mfillpot wrote:

[b]linustorvalds wrote:[/b]
[quote][b]mfillpot wrote:[/b]
[quote]"shutdown -P halt" in both runlevels 3 and 4 is just pushing me to init 1 (single user mode).

After reviewing the source for the shutdown program I found that it is written to change the system to runlevel1 and not halt the system. If you wish to actually shutdown the system you can use "shutdown -h now" or poweroff.

but matt, why they changed the command's way of working too?. It is supposed to be common with all distro, right ?[/quote]
Actually they did not change the command, the source I reviewed is the official source of sysvinit. It may be that the other distros changed It themselves to fix the command.

The code for sysvinit and shutdown are quite simple you can always modify the code yourself to make it behave as you want and build a custom package.[/quote]

ok. thankyou matt

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board