Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Whom computers would destroy, they must first drive mad.


computers / comp.sys.raspberry-pi / Re: Easiest way to start a daemon - Pi Zero

SubjectAuthor
* Easiest way to start a daemon - Pi ZeroThe Natural Philosopher
+* Re: Easiest way to start a daemon - Pi Zeroyeti
|`- Re: Easiest way to start a daemon - Pi ZeroThe Natural Philosopher
+* Re: Easiest way to start a daemon - Pi ZeroAhem A Rivet's Shot
|`* Re: Easiest way to start a daemon - Pi ZeroThe Natural Philosopher
| `- Re: Easiest way to start a daemon - Pi ZeroComputer Nerd Kev
`* Re: Easiest way to start a daemon - Pi ZeroChris Elvidge
 `* Re: Easiest way to start a daemon - Pi ZeroThe Natural Philosopher
  +- Re: Easiest way to start a daemon - Pi ZeroKnute Johnson
  `- Re: Easiest way to start a daemon - Pi ZeroChris Elvidge

1
Easiest way to start a daemon - Pi Zero

<ub56dt$qqtu$7@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6920&group=comp.sys.raspberry-pi#6920

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 12:35:25 +0100
Organization: A little, after lunch
Lines: 17
Message-ID: <ub56dt$qqtu$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 11:35:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4b1db7bf65b1cd290f39824b5421946c";
logging-data="879550"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YCC5WNmSzZ+q8ZYRhHUuMxzqT+KNPtIk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:CXEp9WJUqSJ+9zBhnFpEF1haHkI=
Content-Language: en-GB
 by: The Natural Philosop - Fri, 11 Aug 2023 11:35 UTC

Having finally fixed its bugs (don't ask) I have a perfect little daemon
that pops itself in background and runs indefinitely, It isn't leaking
memory and its not crashing and there is no reason it ever should, It
accesses files but these will always be present and correct. It will
never need to be killed or HUPed to relaod itself.

What is the absolute simplest way to autostart it. /etc/init.d and a
script linked to etc/rc?.d? systemd?

Raspios is the Os.

--
New Socialism consists essentially in being seen to have your heart in
the right place whilst your head is in the clouds and your hand is in
someone else's pocket.

Re: Easiest way to start a daemon - Pi Zero

<87a5uxx0pk.fsf@tilde.institute>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6921&group=comp.sys.raspberry-pi#6921

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yet...@tilde.institute (yeti)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 11:44:39 +0000
Organization: Democratic Order of Pirates International (DOPI)
Lines: 6
Message-ID: <87a5uxx0pk.fsf@tilde.institute>
References: <ub56dt$qqtu$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="183c7deefaff731add248b6b75800cd3";
logging-data="885733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LAkGh/DkYIiB+1RXLnyUr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:q54Y1mYqunYFQUhZN16vFalSfQE=
sha1:h6OtWBSeyG42e+RaoznnAurHlag=
X-Face: ]_G&_b@O$RF(L7zT;DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b;26e
5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE
`B<kE3T-Gps_d0_6`+0W3E9{D
 by: yeti - Fri, 11 Aug 2023 11:44 UTC

....an @reboot line in crontab?

--
Take Back Control! -- Mesh The Planet!
I do not play Nethack, I do play GNUS! o;-)
Solid facts do not need 1001 pictures.

Re: Easiest way to start a daemon - Pi Zero

<ub585k$r48q$4@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6922&group=comp.sys.raspberry-pi#6922

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 13:05:08 +0100
Organization: A little, after lunch
Lines: 13
Message-ID: <ub585k$r48q$4@dont-email.me>
References: <ub56dt$qqtu$7@dont-email.me> <87a5uxx0pk.fsf@tilde.institute>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 12:05:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4b1db7bf65b1cd290f39824b5421946c";
logging-data="889114"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rMqmgoR30+Y6InSiDT3RcEXsMTF2TI2g="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:oLh4QzGBcpLxC+MDqlhWfkVgt4k=
Content-Language: en-GB
In-Reply-To: <87a5uxx0pk.fsf@tilde.institute>
 by: The Natural Philosop - Fri, 11 Aug 2023 12:05 UTC

On 11/08/2023 12:44, yeti wrote:
> ...an @reboot line in crontab?
>
Yup, I guess that's another one! I'd forgotten that!

--
"Strange as it seems, no amount of learning can cure stupidity, and
higher education positively fortifies it."

- Stephen Vizinczey

Re: Easiest way to start a daemon - Pi Zero

<20230811132148.033b104c77b70673dc77c692@eircom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6924&group=comp.sys.raspberry-pi#6924

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 13:21:48 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20230811132148.033b104c77b70673dc77c692@eircom.net>
References: <ub56dt$qqtu$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="99fd74ee1a389046e79663a4d56dacbe";
logging-data="899239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18S2tmFmg7fXN3PkCZST2rGqBzy38OTBMM="
Cancel-Lock: sha1:5ePfip9nVdcUPZlYDKCo1ZHF12U=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Fri, 11 Aug 2023 12:21 UTC

On Fri, 11 Aug 2023 12:35:25 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> What is the absolute simplest way to autostart it. /etc/init.d and a
> script linked to etc/rc?.d? systemd?

/etc/rc.local - if it still exists.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Easiest way to start a daemon - Pi Zero

<ub5dep$s19m$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6926&group=comp.sys.raspberry-pi#6926

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 14:35:20 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <ub5dep$s19m$1@dont-email.me>
References: <ub56dt$qqtu$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 13:35:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="16e4c1b3cd3b1fa5fb7d9e847f892941";
logging-data="918838"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+AYEUkRaqDMVhTUq6nOJDkQpGpCBGkvM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:vY5vfxBENL8wy7/hkxNbVv02mwI=
In-Reply-To: <ub56dt$qqtu$7@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Fri, 11 Aug 2023 13:35 UTC

On 11/08/2023 12:35, The Natural Philosopher wrote:
> Having finally fixed its bugs (don't ask) I have a perfect little daemon
> that pops itself in background and runs indefinitely, It isn't leaking
> memory and its not crashing and there is no reason it ever should, It
> accesses files but these will always be present and correct. It will
> never need to be killed or HUPed to relaod itself.
>
> What is the absolute simplest way to autostart it. /etc/init.d and a
> script linked to etc/rc?.d? systemd?
>
> Raspios is the Os.
>
>
I've just installed pigpiod

/lib/systemd/system/pigpiod.service

[Unit]
Description=Daemon required to control GPIO pins via pigpio
[Service]
ExecStart=/usr/bin/pigpiod -l
ExecStop=/bin/systemctl kill pigpiod
Type=forking
[Install]
WantedBy=multi-user.target

And then 'systemctl enable pigpiod.service' to put in a link in
/etc/systemd/system/multi-user.target.wants

If you change the relevant lines, it should work.

--

Chris Elvidge, England
I WILL NOT SELL MY KIDNEY ON eBAY

Re: Easiest way to start a daemon - Pi Zero

<ub5j88$spt4$7@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6932&group=comp.sys.raspberry-pi#6932

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 16:14:16 +0100
Organization: A little, after lunch
Lines: 15
Message-ID: <ub5j88$spt4$7@dont-email.me>
References: <ub56dt$qqtu$7@dont-email.me>
<20230811132148.033b104c77b70673dc77c692@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 15:14:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4b1db7bf65b1cd290f39824b5421946c";
logging-data="944036"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18teYJTrHpmfcCnNKtFPLJgEm9vD6mDEPg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:nKitxdg1rFkJs+VAdRu++vBU3r8=
Content-Language: en-GB
In-Reply-To: <20230811132148.033b104c77b70673dc77c692@eircom.net>
 by: The Natural Philosop - Fri, 11 Aug 2023 15:14 UTC

On 11/08/2023 13:21, Ahem A Rivet's Shot wrote:
> On Fri, 11 Aug 2023 12:35:25 +0100
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> What is the absolute simplest way to autostart it. /etc/init.d and a
>> script linked to etc/rc?.d? systemd?
>
> /etc/rc.local - if it still exists.
>
Seems to. Whether it is as redundant as tits on a bull, is less obvious.
--
In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act.

- George Orwell

Re: Easiest way to start a daemon - Pi Zero

<ub5jak$spt4$8@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6933&group=comp.sys.raspberry-pi#6933

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 16:15:32 +0100
Organization: A little, after lunch
Lines: 41
Message-ID: <ub5jak$spt4$8@dont-email.me>
References: <ub56dt$qqtu$7@dont-email.me> <ub5dep$s19m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Aug 2023 15:15:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4b1db7bf65b1cd290f39824b5421946c";
logging-data="944036"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J6xkcJny6x82EAY6Y4dku7Ps7+ePbtDQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:z1Ao9jN7EhlmOjwmpoqQpvQCIMM=
In-Reply-To: <ub5dep$s19m$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Fri, 11 Aug 2023 15:15 UTC

On 11/08/2023 14:35, Chris Elvidge wrote:
> On 11/08/2023 12:35, The Natural Philosopher wrote:
>> Having finally fixed its bugs (don't ask) I have a perfect little
>> daemon that pops itself in background and runs indefinitely, It isn't
>> leaking memory and its not crashing and there is no reason it ever
>> should, It accesses files but these will always be present and
>> correct.  It will never need to be killed or HUPed to relaod itself.
>>
>> What is the absolute simplest way to autostart it. /etc/init.d and a
>> script linked to etc/rc?.d? systemd?
>>
>> Raspios is the Os.
>>
>>
> I've just installed pigpiod
>
> /lib/systemd/system/pigpiod.service
>
> [Unit]
> Description=Daemon required to control GPIO pins via pigpio
> [Service]
> ExecStart=/usr/bin/pigpiod -l
> ExecStop=/bin/systemctl kill pigpiod
> Type=forking
> [Install]
> WantedBy=multi-user.target
>
> And then 'systemctl enable pigpiod.service' to put in a link in
> /etc/systemd/system/multi-user.target.wants
>
> If you change the relevant lines, it should work.
>
>
Ah, that looks neat. Is the "Type=forking" there to tell systemd not to
expect it *not* to return?

--
In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act.

- George Orwell

Re: Easiest way to start a daemon - Pi Zero

<ub5k9d$ss01$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6935&group=comp.sys.raspberry-pi#6935

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: knute2...@585ranch.com (Knute Johnson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 10:31:57 -0500
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ub5k9d$ss01$1@dont-email.me>
References: <ub56dt$qqtu$7@dont-email.me> <ub5dep$s19m$1@dont-email.me>
<ub5jak$spt4$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Aug 2023 15:31:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="155a871e2a769df670e4be7edf4ab1e4";
logging-data="946177"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bzue4cf1x0BH/GermXCHX"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:5opHR8G/VXJdQ3gLmT1hUADipXM=
In-Reply-To: <ub5jak$spt4$8@dont-email.me>
Content-Language: en-US
 by: Knute Johnson - Fri, 11 Aug 2023 15:31 UTC

On 8/11/23 10:15, The Natural Philosopher wrote:

> Ah, that looks neat.  Is the "Type=forking" there to tell systemd not to
> expect it *not* to return?
>

Type=simple for a program that just goes off on its own.

--

Knute Johnson

Re: Easiest way to start a daemon - Pi Zero

<ub5lt9$t8or$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6937&group=comp.sys.raspberry-pi#6937

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Easiest way to start a daemon - Pi Zero
Date: Fri, 11 Aug 2023 16:59:35 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <ub5lt9$t8or$1@dont-email.me>
References: <ub56dt$qqtu$7@dont-email.me> <ub5dep$s19m$1@dont-email.me>
<ub5jak$spt4$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 15:59:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="007b8befdef72eacde93ddff472bcfd7";
logging-data="959259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vX/JWn63Ms/OFqbKSDCua91vCVWi6xZ8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:Bu+U8lFOAh1xVgcICdh4b0YG80c=
In-Reply-To: <ub5jak$spt4$8@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Fri, 11 Aug 2023 15:59 UTC

On 11/08/2023 16:15, The Natural Philosopher wrote:
> On 11/08/2023 14:35, Chris Elvidge wrote:
>> On 11/08/2023 12:35, The Natural Philosopher wrote:
>>> Having finally fixed its bugs (don't ask) I have a perfect little
>>> daemon that pops itself in background and runs indefinitely, It isn't
>>> leaking memory and its not crashing and there is no reason it ever
>>> should, It accesses files but these will always be present and
>>> correct. It will never need to be killed or HUPed to relaod itself.
>>>
>>> What is the absolute simplest way to autostart it. /etc/init.d and a
>>> script linked to etc/rc?.d? systemd?
>>>
>>> Raspios is the Os.
>>>
>>>
>> I've just installed pigpiod
>>
>> /lib/systemd/system/pigpiod.service
>>
>> [Unit]
>> Description=Daemon required to control GPIO pins via pigpio
>> [Service]
>> ExecStart=/usr/bin/pigpiod -l
>> ExecStop=/bin/systemctl kill pigpiod
>> Type=forking
>> [Install]
>> WantedBy=multi-user.target
>>
>> And then 'systemctl enable pigpiod.service' to put in a link in
>> /etc/systemd/system/multi-user.target.wants
>>
>> If you change the relevant lines, it should work.
>>
>>
> Ah, that looks neat. Is the "Type=forking" there to tell systemd not to
> expect it *not* to return?
>

See: https://www.freedesktop.org/software/systemd/man/systemd.service.html

--

Chris Elvidge, England
WEDGIES ARE UNHEALTHY FOR CHILDREN AND OTHER LIVING THINGS

Re: Easiest way to start a daemon - Pi Zero

<64d6c76b@news.ausics.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=6945&group=comp.sys.raspberry-pi#6945

 copy link   Newsgroups: comp.sys.raspberry-pi
Message-ID: <64d6c76b@news.ausics.net>
From: not...@telling.you.invalid (Computer Nerd Kev)
Subject: Re: Easiest way to start a daemon - Pi Zero
Newsgroups: comp.sys.raspberry-pi
References: <ub56dt$qqtu$7@dont-email.me> <20230811132148.033b104c77b70673dc77c692@eircom.net> <ub5j88$spt4$7@dont-email.me>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 12 Aug 2023 09:42:36 +1000
Organization: Ausics - https://www.ausics.net
Lines: 36
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: Computer Nerd Kev - Fri, 11 Aug 2023 23:42 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 11/08/2023 13:21, Ahem A Rivet's Shot wrote:
>> On Fri, 11 Aug 2023 12:35:25 +0100
>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>
>>> What is the absolute simplest way to autostart it. /etc/init.d and a
>>> script linked to etc/rc?.d? systemd?
>>
>> /etc/rc.local - if it still exists.
>>
> Seems to. Whether it is as redundant as tits on a bull, is less obvious.

As of some years ago it existed, but didn't do anything, in RPi OS.
I found various guides online for enabling it with Systemd, none of
which worked because Systemd obviously changes its workings every
other week. I eventually wrote a script to perform all the
ridiculously over-complicated and opaque configuration scripts to
make it work on a fresh install. I posted that script once in this
group. I won't bother digging it up again now because it seems
extremely likely that by now Systemd will have changed again and it
will be as broken in current RPi OS as the various outdated
tutorials that I spent hours trying to follow originally.

The complication is wanting a process to run after everything else,
not just after some specific things have been started. Systemd is
designed to cater for the latter case, and if you're building the
OS from the ground up that's probably fine, but making it so
complicated to do the former is just unforgivable in my opinion.

I now consider RPi OS as just an example system from which to take
inspiration for implementing software in a more sane, Systemd-free,
environment.

--
__ __
#_ < |\| |< _#

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor