Deutsch English Français Italiano |
<v5do0p$1e5og$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Sebastian Wells <sebastian@here.com.invalid> Newsgroups: comp.os.linux.advocacy Subject: Re: =?UTF-8?B?U3lzdMOobWU=?= D Date: Tue, 25 Jun 2024 06:27:37 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: <v5do0p$1e5og$2@dont-email.me> References: <v07d66$1e8u1$1@dont-email.me> <v08k00$1mk96$3@dont-email.me> <v08lbg$1n00b$1@dont-email.me> <6627ecd2$0$3711206$882e4bbb@reader.netnews.com> <v09ano$1s2pn$4@dont-email.me> <v2ch8m$3ala3$1@dont-email.me> <v5dm63$1dttg$4@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 25 Jun 2024 08:27:37 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7b52c6c234035b9f273b502a0faa6d3a"; logging-data="1513232"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Pus0eMB36ocR2ZI9dweJYsF71VnEw4jQ=" User-Agent: Pan/0.154 (Izium; 517acf4) Cancel-Lock: sha1:DVd8X1dqQqeqRv+mcyVYYU9o0rA= Bytes: 1962 On Tue, 25 Jun 2024 05:56:19 -0000 (UTC), Lawrence D'Oliveiro wrote: > On Sun, 19 May 2024 09:37:28 -0000 (UTC), Sebastian wrote: > >> One thing you can't do with Systemd is write a simple shell script that >> runs when the system finishes booting, without having to learn any of >> the ins and outs of Systemd. > > Sure you can. Just have a “WantedBy” dependency in your service > definition on whichever target represents the state you want the script > to run in, > e.g. “multi-user.target” for normal system operation. Figuring out which "target" is the right one, and then how to write a "WantedBy dependency" would constitute "learning any of the ins and outs of Systemd". It's way more involved than the process of using /etc/rc.local is on a SysVInit system.