Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A formal parsing algorithm should not always be used. -- D. Gries


computers / comp.sys.raspberry-pi / What happens to backround processes at midnight..?

SubjectAuthor
* What happens to backround processes at midnight..?Bengt Törnqvist
+- Re: What happens to backround processes at midnight..?Brian Gregory
+* Re: What happens to backround processes at midnight..?The Natural Philosopher
|`* Re: What happens to backround processes at midnight..?Bengt Törnqvist
| +- Whappens to to backround processes at midnight..?Vincent Coen
| `* Re: What happens to backround processes at midnight..?Martin Gregorie
|  `* Re: What happens to backround processes at midnight..?Bengt Törnqvist
|   `- Re: What happens to backround processes at midnight..?The Natural Philosopher
`- Re: What happens to backround processes at midnight..?druck

1
What happens to backround processes at midnight..?

<a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
X-Received: by 2002:a05:6214:32a:b0:66c:fff5:4db1 with SMTP id j10-20020a056214032a00b0066cfff54db1mr120517qvu.10.1699804522741;
Sun, 12 Nov 2023 07:55:22 -0800 (PST)
X-Received: by 2002:a65:6186:0:b0:5be:3925:b5b4 with SMTP id
c6-20020a656186000000b005be3925b5b4mr1258071pgv.9.1699804522360; Sun, 12 Nov
2023 07:55:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.raspberry-pi
Date: Sun, 12 Nov 2023 07:55:21 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=193.181.35.171; posting-account=rPxKYAkAAACZL9Ia3g3cZHelK-_cv8q3
NNTP-Posting-Host: 193.181.35.171
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
Subject: What happens to backround processes at midnight..?
From: bengt.tornq@gmail.com (Bengt Törnqvist)
Injection-Date: Sun, 12 Nov 2023 15:55:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1356
 by: Bengt Törnqvist - Sun, 12 Nov 2023 15:55 UTC

In my Raspberry Pi I have processes ongoing i background. However they seems, for some reason..., to become disabled at midnight
(at 00:00).

For the time being I have to restart them, with crontab, at 00:01 every night.

/var/log/syslog does not give any clarification.

Greatful for hints on how to solve the problem.

Re: What happens to backround processes at midnight..?

<krcitcFhd84U1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: void-invalid-dead-dontuse@email.invalid (Brian Gregory)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: What happens to backround processes at midnight..?
Date: Sun, 12 Nov 2023 18:13:00 +0000
Organization: https://www.Brian-Gregory.me.uk/
Lines: 19
Message-ID: <krcitcFhd84U1@mid.individual.net>
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net s7vpKenFBlI5n3/jeJgsJgRFBPYtiZ2dz3EpJqoBA6q2hRnzS4
Cancel-Lock: sha1:TrXL58mPkWfxPrTjkx1SpttnWxU= sha256:4M0RkstmrG129Eu/lkc7kC51Jeq87bP8GXGJ3QRCuNA=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
 by: Brian Gregory - Sun, 12 Nov 2023 18:13 UTC

On 12/11/2023 15:55, Bengt Törnqvist wrote:
> In my Raspberry Pi I have processes ongoing i background. However they seems, for some reason..., to become disabled at midnight
> (at 00:00).
>
> For the time being I have to restart them, with crontab, at 00:01 every night.
>
> /var/log/syslog does not give any clarification.
>
>
> Greatful for hints on how to solve the problem.

What sort of thing are these misbehaving processes?

Could some external process like the loss of internet connection or
maybe timeout of a TCP connection be crashing them?

--
Brian Gregory (in England).

Re: What happens to backround processes at midnight..?

<uireun$7qkn$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.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: What happens to backround processes at midnight..?
Date: Sun, 12 Nov 2023 21:09:43 +0000
Organization: A little, after lunch
Lines: 29
Message-ID: <uireun$7qkn$3@dont-email.me>
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 12 Nov 2023 21:09:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fa4207dc9125c57a203037b81917594d";
logging-data="256663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DOBHJ86jMX3rZi/8ewtcLeu+NWFWKHJg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:j5tJTLI7ZSwOZJdQWvvMJmYvpYs=
Content-Language: en-GB
In-Reply-To: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
 by: The Natural Philosop - Sun, 12 Nov 2023 21:09 UTC

On 12/11/2023 15:55, Bengt Törnqvist wrote:
> In my Raspberry Pi I have processes ongoing i background. However they seems, for some reason..., to become disabled at midnight
> (at 00:00).
>
In my Raspberry Pi I have processes ongoing in background. However they
seems, for some reason to stay enabled at midnight.
So its a process specifiic problem, and since you give no detail. on the
processes, its pretty hard to say why.

> For the time being I have to restart them, with crontab, at 00:01 every night.
>
> /var/log/syslog does not give any clarification.
>
>
> Greatful for hints on how to solve the problem.

If they are managed by systemd look in ITS logs.
Also consider if they have any code that cares about the time in them,
and if it doesn't like going from e.g. 23:59 to 00:01.

Make them spew our debug info,

--
There is nothing a fleet of dispatchable nuclear power plants cannot do
that cannot be done worse and more expensively and with higher carbon
emissions and more adverse environmental impact by adding intermittent
renewable energy.

Re: What happens to backround processes at midnight..?

<eed0d71b-19fe-4fc4-8012-5948aed3a016n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
X-Received: by 2002:a05:620a:178c:b0:76f:513:7a8c with SMTP id ay12-20020a05620a178c00b0076f05137a8cmr185701qkb.2.1699899858246;
Mon, 13 Nov 2023 10:24:18 -0800 (PST)
X-Received: by 2002:a17:90b:350e:b0:26d:a6b:9a47 with SMTP id
ls14-20020a17090b350e00b0026d0a6b9a47mr2236483pjb.2.1699899857962; Mon, 13
Nov 2023 10:24:17 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.raspberry-pi
Date: Mon, 13 Nov 2023 10:24:17 -0800 (PST)
In-Reply-To: <uireun$7qkn$3@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=45.130.87.6; posting-account=rPxKYAkAAACZL9Ia3g3cZHelK-_cv8q3
NNTP-Posting-Host: 45.130.87.6
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com> <uireun$7qkn$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <eed0d71b-19fe-4fc4-8012-5948aed3a016n@googlegroups.com>
Subject: Re: What happens to backround processes at midnight..?
From: bengt.tornq@gmail.com (Bengt Törnqvist)
Injection-Date: Mon, 13 Nov 2023 18:24:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1499
 by: Bengt Törnqvist - Mon, 13 Nov 2023 18:24 UTC

My assumption was that there might be some clean up procedure i Linux, started at midnight, which I was not aware of, that disabled my background procedures.
I have now learnt that this could not be the case. I have to dig further in my programs myself in order to try to find the reason(s).

Thank you all for responding.

Whappens to to backround processes at midnight..?

<1699907108@f1.n250.z2.fidonet.org>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen)
Newsgroups: comp.sys.raspberry-pi
Subject: Whappens to to backround processes at midnight..?
Date: Mon, 13 Nov 2023 20:22:32 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <1699907108@f1.n250.z2.fidonet.org>
References: <eed0d71b-19fe-4fc4-8012-5948aed3a016n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="28985"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Bengt T??rnqvist
 by: Vincent Coen - Mon, 13 Nov 2023 07:22 UTC

Hello Bengt!

Monday November 13 2023 10:24, you wrote to All:

> My assumption was that there might be some clean up procedure i Linux,
> started at midnight, which I was not aware of, that disabled my
> background procedures. I have now learnt that this could not be the
> case. I have to dig further in my programs myself in order to try to
> find the reason(s).

> Thank you all for responding.

Using root and your login take a look at if there are any processes in crontab
by doing crontab -l

It is possible that there is a midnight process that is scheduled but saying
that there should not be any that do so with running processes but does depend
on your installed distro.

Vincent

Re: What happens to backround processes at midnight..?

<uiu872$sv88$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: What happens to backround processes at midnight..?
Date: Mon, 13 Nov 2023 22:33:05 +0000
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uiu872$sv88$2@dont-email.me>
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Date: Mon, 13 Nov 2023 22:33:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3cfae008c6a9e2430054ea751d1037a7";
logging-data="949512"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pEinJF6+koAVw34sXE3nA"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VoJPJ92Y74ggN6b1+FQOhWRTc4I=
Content-Language: en-GB
In-Reply-To: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 231110-8, 10/11/2023), Outbound message
 by: druck - Mon, 13 Nov 2023 22:33 UTC

On 12/11/2023 15:55, Bengt Törnqvist wrote:
> In my Raspberry Pi I have processes ongoing i background. However they seems, for some reason..., to become disabled at midnight
> (at 00:00).
Are you using systemd with StandardOutput to invoke your process, and
have log rotation set up? If so you probably aren't handling the HUP
signal when the log file is rotated. Using CopyTuncate in the logrotate
conf might solve the issue.
---druck

Re: What happens to backround processes at midnight..?

<uiud1q$n5n1$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: What happens to backround processes at midnight..?
Date: Mon, 13 Nov 2023 23:55:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uiud1q$n5n1$3@dont-email.me>
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
<uireun$7qkn$3@dont-email.me>
<eed0d71b-19fe-4fc4-8012-5948aed3a016n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 13 Nov 2023 23:55:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="95841ec56695212733118b4d1ea5be40";
logging-data="759521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yOWbQVfjNVZ/7N015GrjhqB46Nno9oZs="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:GEQnXI3xELvuvhOhIUeW2xEn2EU=
 by: Martin Gregorie - Mon, 13 Nov 2023 23:55 UTC

On Mon, 13 Nov 2023 10:24:17 -0800 (PST), Bengt Törnqvist wrote:

> My assumption was that there might be some clean up procedure i Linux,
> started at midnight, which I was not aware of, that disabled my
> background procedures.
>
Have you had a look to see exactly what is run at set times and/or
intervals?

Jobs defined in /etc/cron.* are run hourly, daily, weekly and monthly and
are never automatically removed, i.e. thay are run at the specified
intervals forever.

Scripts dropped into /etc/crontab are run pnce and then deleted.

> I have now learnt that this could not be the case. I have to dig
> further in my programs myself in order to try to find the reason(s).
>
> Thank you all for responding.

--

Martin | martin at
Gregorie | gregorie dot org

Re: What happens to backround processes at midnight..?

<19d25631-29f0-4e8f-a808-e0f6a70b150an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
X-Received: by 2002:a05:620a:170c:b0:77b:d5a8:9b8c with SMTP id az12-20020a05620a170c00b0077bd5a89b8cmr324472qkb.14.1700210322140;
Fri, 17 Nov 2023 00:38:42 -0800 (PST)
X-Received: by 2002:a63:5364:0:b0:589:3671:85c4 with SMTP id
t36-20020a635364000000b00589367185c4mr896048pgl.1.1700210321823; Fri, 17 Nov
2023 00:38:41 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.raspberry-pi
Date: Fri, 17 Nov 2023 00:38:41 -0800 (PST)
In-Reply-To: <uiud1q$n5n1$3@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=45.130.87.2; posting-account=rPxKYAkAAACZL9Ia3g3cZHelK-_cv8q3
NNTP-Posting-Host: 45.130.87.2
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
<uireun$7qkn$3@dont-email.me> <eed0d71b-19fe-4fc4-8012-5948aed3a016n@googlegroups.com>
<uiud1q$n5n1$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19d25631-29f0-4e8f-a808-e0f6a70b150an@googlegroups.com>
Subject: Re: What happens to backround processes at midnight..?
From: bengt.tornq@gmail.com (Bengt Törnqvist)
Injection-Date: Fri, 17 Nov 2023 08:38:42 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1461
 by: Bengt Törnqvist - Fri, 17 Nov 2023 08:38 UTC

I have come to the conclusion that the problem is related to that I have a program using a "gpio out port".

If I, for testing, disables the program using the "out port", the problem disappears.

Re: What happens to backround processes at midnight..?

<uj7d7f$2oed1$4@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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: What happens to backround processes at midnight..?
Date: Fri, 17 Nov 2023 09:53:51 +0000
Organization: A little, after lunch
Lines: 21
Message-ID: <uj7d7f$2oed1$4@dont-email.me>
References: <a2bb4051-4f0f-44ec-be4e-f85f5a747699n@googlegroups.com>
<uireun$7qkn$3@dont-email.me>
<eed0d71b-19fe-4fc4-8012-5948aed3a016n@googlegroups.com>
<uiud1q$n5n1$3@dont-email.me>
<19d25631-29f0-4e8f-a808-e0f6a70b150an@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 17 Nov 2023 09:53:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="24dee2299f2092a17a026a6f77d6aae7";
logging-data="2898337"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7vI35MSFDHVbaJPW/HWRZlVTBCpCdobE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6OEqlxgrDQKVesOkQFt9QN7lzAw=
In-Reply-To: <19d25631-29f0-4e8f-a808-e0f6a70b150an@googlegroups.com>
Content-Language: en-GB
 by: The Natural Philosop - Fri, 17 Nov 2023 09:53 UTC

On 17/11/2023 08:38, Bengt Törnqvist wrote:
> I have come to the conclusion that the problem is related to that I have a program using a "gpio out port".
>
> If I, for testing, disables the program using the "out port", the problem disappears.

Well it cant be a *general* issue, because I have a background daemon
that controls 4 gpio ports as outputs and have been running now....

heating-controller:~ $ uptime
09:51:18 up 22 days, 21:44, 1 user, load average: 0.15, 0.07, 0.01

....clicking it's little relays.

So there is something specific to that program or how it is interacting
with the hardware.
--
"And if the blind lead the blind, both shall fall into the ditch".

Gospel of St. Mathew 15:14

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor