[clug] systemd and systemctl poweroff

Bob Edwards bob at cs.anu.edu.au
Mon Apr 8 23:10:40 UTC 2019


On 8/4/19 9:41 pm, George at Clug via linux wrote:
> Hi,
> 
> 
> Has anyone been testing Debian 10 (Buster)?
> 
> 
> I went to "shutdown" and this did not work. >

According to:
https://unix.stackexchange.com/questions/507259/is-there-a-posix-way-to-shutdown-a-unix-machine
POSIX doesn't care about standard ways of shutting down a machine
(see the link to the POSIX standard etc. included in link above).

So, therefore, Debian etc. don't need to support shutdown, reboot
etc. in order to comply with the POSIX standard.

News to me...

cheers,
Bob Edwards.

> 
>   I am guessing that due to systemd, shutdown has been removed?
> 
> 
> So is now " systemctl poweroff" the preferred method?
> 
> 
> The question I ask, "how is the a better solution?"  (maybe someone
> can tell me).
> 
> 
> I like the original Unix philosophy of "many small programs for each
> task, not one monolithic program trying to do everything"
> 
> 
> https://en.wikipedia.org/wiki/Unix_philosophy
> The Unix philosophy, originated by Ken Thompson [1], is a set of
> cultural norms and philosophical approaches to minimalist [2], modular
> [3] software development [4]
> 
> 
> 
> 
> The UNIX philosophy is documented by Doug McIlroy [5][1] [6] in the
> Bell System Technical Journal from 1978:[2] [7]
> 
> 
> 
> 	* Make each program do one thing well. To do a new job, build afresh
> rather than complicate old programs by adding new "features".
> 	* Expect the output of every program to become the input to another,
> as yet unknown, program. Don't clutter output with extraneous
> information. Avoid stringently columnar or binary input formats. Don't
> insist on interactive input.
> 	* Design and build software, even operating systems, to be tried
> early, ideally within weeks. Don't hesitate to throw away the clumsy
> parts and rebuild them.
> 	* Use tools in preference to unskilled help to lighten a programming
> task, even if you have to detour to build the tools and expect to
> throw some of them out after you've finished using them.
> https://www.johndcook.com/blog/2010/06/30/where-the-unix-philosophy-breaks-down/
> 
> 
> It will be the end of Linux...
> 
> https://news.ycombinator.com/item?id=2330206
> 
> 
> 
> 
> 
> 
> George.
> 
> 
> 
> Links:
> ------
> [1] https://en.wikipedia.org/wiki/Ken_Thompson
> [2] https://en.wikipedia.org/wiki/Minimalism_(computing)
> [3] https://en.wikipedia.org/wiki/Modularity_(programming)
> [4] https://en.wikipedia.org/wiki/Software_development
> [5] https://en.wikipedia.org/wiki/Doug_McIlroy
> [6]
> https://en.wikipedia.org/wiki/Unix_philosophy#cite_note-taoup-ch1s6-1
> [7] https://en.wikipedia.org/wiki/Unix_philosophy#cite_note-2
> 




More information about the linux mailing list