Message-ID: <683ab1da@news.ausics.net> From: not@telling.you.invalid (Computer Nerd Kev) Subject: Re: Distros specifically designed for children Newsgroups: comp.os.linux.misc References: <6831b9a7$0$8595$426a74cc@news.free.fr> <6832fab9$0$11442$426a74cc@news.free.fr> <10102st$1j2ov$1@dont-email.me> <10131ao$28rgm$1@dont-email.me> <1016dr6$1e7od$1@news1.tnib.de> <1016gih$355q7$6@dont-email.me> <1017d93$3aupc$2@dont-email.me> <1017efm$3b95f$1@dont-email.me> <1017o1h$39umi$1@dont-email.me> <1017rcg$3e1i6$1@dont-email.me> <10181qd$3er4t$1@dont-email.me> <1018iiq$3lujt$4@dont-email.me> <1018k1q$3hked$1@dont-email.me> <1018nhd$3mqbn$2@dont-email.me> <101a06j$3tf0k$4@dont-email.me> <101bqup$d3l6$5@dont-email.me> <101dbhc$mkpm$9@dont-email.me> <683a6d94@news.ausics.net> <101e19m$ucpf$2@dont-email.me> User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586)) NNTP-Posting-Host: news.ausics.net Date: 31 May 2025 17:38:03 +1000 Organization: Ausics - https://newsgroups.ausics.net Lines: 37 X-Complaints: abuse@ausics.net Path: csiph.com!news.mixmin.net!news.ausics.net!not-for-mail Xref: csiph.com comp.os.linux.misc:68074 Lawrence D'Oliveiro wrote: > On 31 May 2025 12:46:44 +1000, Computer Nerd Kev wrote: >> Heh, yeah but you can see exactly what the sysvinit scripts are >> doing. > > Not really. What's the first step to writing a new sysvinit script? > Copy/paste a whole bunch of boilerplate from an existing script. Why? > "Just in case" ... Sure but I don't find that boilerplate hard to read that. I do find it hard to look up what all the fields in Systemd services mean, and the commands to install/enable/inspect them. Like I say if I were editing lots of them regularly it would be different, but I use shell scripts much more than I tweak init tasks, so the less init-specific info required the better. >> I tried to write a Systemd service and ran into all the weird >> commands and different edits you had to make. > > I've done several of those. Here's an example (not one of mine) > > which is instructive because of its simplicity: it shows how systemd > can really make things easier to express than sysvinit. Except you could have just done this on most sysvinit systems: echo 'echo 50 > /sys/class/power_supply/BAT0/charge_control_end_threshold' >> /etc/rc.local (though probably better to have "exit 0" at the end of that script). Or the same in Systemd if you have a service that runs /etc/rc.local. Or maybe that would be sacrilege? Anyway, each to his own. -- __ __ #_ < |\| |< _#