| Deutsch English Français Italiano |
|
<slrnvlp5ek.29n.jj@iridium.wf32df> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jim Jackson <jj@franjam.org.uk> Newsgroups: comp.unix.programmer Subject: Re: Faking a TTY on a pipe/socketpair Date: Fri, 13 Dec 2024 20:15:16 -0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Message-ID: <slrnvlp5ek.29n.jj@iridium.wf32df> References: <vh9vgr$5bb$1@dont-email.me> <jHw3P.41603$vLg2.41154@fx17.iad> <vimf13$3uoji$1@dont-email.me> <vinp86$avd9$1@dont-email.me> <vip46l$omqu$1@dont-email.me> <vir23n$17csf$5@dont-email.me> <virnn2$1g9ja$1@dont-email.me> <vit3dg$1quau$1@dont-email.me> <slrnvleknf.apv.jj@iridium.wf32df> <wwvfrmv3os3.fsf@LkoBDZeT.terraraq.uk> <vj91a1$t8pn$1@dont-email.me> <vja9r8$14k6s$1@dont-email.me> <vjbiop$1f2e5$1@dont-email.me> <vjd3jg$1od5c$3@dont-email.me> <vje7fb$21u8i$1@dont-email.me> <vjfo8l$2vfl9$3@dont-email.me> Injection-Date: Fri, 13 Dec 2024 21:15:17 +0100 (CET) Injection-Info: dont-email.me; posting-host="308f169c22b4004a84c6c94568acd33b"; logging-data="3777225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Djvnx8MG2GcZ8pYrqW8Vglm5UefpevNc=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:q0weZiOFz22GAtirXAOw6ambxUc= Bytes: 2505 >> The trouble is with any support scripts, not with init. I've written a >> number of init scripts with a lot of surrounding logic. > > I???m sure you have. Which means you are familiar with the wholesale copying > and pasting of boilerplate from one script to the next. ???What does this > bit do???? ???Don???t bother thinking too hard, just stick it in, just in case.??? Ah describing bad programming practice. The same thing happens when people just cut and paste anything without knowing what they are doing. > >> God knows how I'd do that with systemd ... > > Figure out what the directives do (they???re all documented), and which > settings will achieve the result you want. Nah, as you say above just cut and paste and not think about any diffiicult bits you need to read up on :-) > Most of the time, your service > file will be very simple and very short, since all the common cases are > already covered. > >>> Poettering understands that services don???t just to be started, they al >>> so need to be managed and shut down cleanly. Actually a service should know how to shutdown itself cleanly and should document how that is achieved.