Re: [systemd-devel] Fastest way to dump last X Mo of logs from the journal ?

2024-04-25 Thread Andy Pieters
On Thu, 25 Apr 2024 at 12:48, Lennart Poettering wrote: > On Mi, 24.04.24 14:48, Etienne Champetier (champetier.etie...@gmail.com) > wrote: > > > what is "last X Mo" supposed to mean? is "mo" supposed to mean months? > thus: show logs from a given number of most recent months? if so, just > use:

Re: [systemd-devel] ExecReload and dynamic arguments (start control process with arguments)

2024-04-02 Thread Andy Pieters
On Mon, 4 Mar 2024 at 14:47, Vadim Nevorotin wrote: > > /etc/init.d/ourservice reload|soft-reload|hard-reload [--someargs] > > I've often wondered, too, how to translate system-v services into systemd, specifically like with apache or nginx we had gotten things like configtest,status,fullstatus,

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Andy Pieters
On Thu, 15 Feb 2024 at 13:12, Greg KH wrote: > On Thu, Feb 15, 2024 at 12:04:27PM +0000, Andy Pieters wrote: > > On Thu, 15 Feb 2024 at 09:12, Greg KH wrote: > > > > > > > > provenance matters HUGELY when it comes to code, as you need a license > > &g

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Andy Pieters
On Thu, 15 Feb 2024 at 09:12, Greg KH wrote: > > provenance matters HUGELY when it comes to code, as you need a license > and other things as well (copyright law is strict.) "AI generated" code > has none of that and as such, can NOT be used for almost any use until > that is sorted out. > >

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Andy Pieters
On Thu, 15 Feb 2024 at 08:32, Reto wrote: > On Wed, Feb 14, 2024 at 05:56:31PM +0100, Vadim Lebedev wrote: > > This is what ChatGPT proposes: > > Can we like not... > If people want to ask a generative AI they do so on their own. > > Let's keep responses based on human interaction shall we,

Re: [systemd-devel] Permanently remove services

2024-01-18 Thread Andy Pieters
Morten Bo Johansen wrote > I have two services that are irrelevant to my system >systemd-tpm2-setup-early.service systemd-tpm2-setup.service Not being funny, but why care? They have got a conditional check in them and will only run when it makes sense. So these units will do nothing

Re: How to get service reload timestamp

2024-01-08 Thread Andy Pieters
On Mon, 8 Jan 2024 at 11:49, port19 wrote: > Hi all, > > we currently have a monitoring check that alerts us of a service-specific > config file having changed more recently than the services last restart. > We retrieve the restart time via `systemctl show > --property=ActiveEnterTimestamp`. >

Re: [systemd-devel] Service user

2023-11-13 Thread Andy Pieters
On Mon, 13 Nov 2023 at 11:38, Tomas Krajco wrote: > I'm trying to run docker daemon with service user account from Active > Directory through sssd daemon. Can you please tell me how to achieve this? > > Hi Thomas This is not a mailing list that will do all of your work for you. Please research

Re: [systemd-devel] Reload simple

2023-10-27 Thread Andy Pieters
On Fri, 27 Oct 2023 at 13:31, Ferenc Wágner wrote: > Andy Pieters writes: > > > Is there a good way to send a usr1 signal upon reload of a service > > with type=simple? > > > Use $MAINPID as per man systemd.service: > > ExecReload=kill -HUP $MAINPID

[systemd-devel] Reload simple

2023-10-27 Thread Andy Pieters
Hi Is there a good way to send a usr1 signal upon reload of a service with type=simple? I don't really want to do KILL USR1 $(pidof process) as that could pull other processes with similar names / instances. Thanks

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-30 Thread Andy Pieters
On Wed, 30 Aug 2023 at 17:55, Dave Howorth wrote: > On Tue, 29 Aug 2023 23:05:28 +0200 > Nils Kattenbeck wrote: > > No, you can use systemd-cat to then invoke your script which applies > > to every output of it. > > The solution to problems with gmail is simple. Stop using gmail and > find

Re: [systemd-devel] asset failure that looks like it's coming from systemd/

2021-12-24 Thread Andy Pieters
On Fri, 24 Dec 2021 at 10:11, Jonathan Kelly wrote: > On 24/12/21 19:45, Andy Pieters wrote: > > > > On Fri, 24 Dec 2021 at 01:53, Jonathan Kelly wrote: > >> make[2]: Entering directory '/usr/local/src/unicon/uni/lib' >> ../../bin/unicon -s -c gui.icn >> Asse

Re: [systemd-devel] asset failure that looks like it's coming from systemd/

2021-12-24 Thread Andy Pieters
On Fri, 24 Dec 2021 at 01:53, Jonathan Kelly wrote: > make[2]: Entering directory '/usr/local/src/unicon/uni/lib' > ../../bin/unicon -s -c gui.icn > Assertion '(size_t) r < n' failed at src/basic/random-util.c:232, > function genuine_random_bytes(). Aborting. > make[2]: ***

Re: [systemd-devel] systemctl start seems to hang with no status

2021-11-04 Thread Andy Pieters
On Thu, 4 Nov 2021 at 18:29, Michal Koutný wrote: > > ntp-wait.service > Wants=time-sync.target > Before=time-sync.target > > Ok this is not an answer, but why use ntp and not systemd-timesyncd?

Re: [systemd-devel] Antw: [EXT] Block systemd from adding new services

2021-06-14 Thread Andy Pieters
On Mon, 14 Jun 2021 at 09:05, Ulrich Windl < ulrich.wi...@rz.uni-regensburg.de> wrote: > > The better solution would have been to pick a stronger password IMHO. > > > Or rather turn off password authentication. If you must have automation, use RSA keys, if not, and really want to keep passwords,

Re: [systemd-devel] Conflicts on service template

2020-09-04 Thread Andy Pieters
On Fri, 4 Sep 2020, 4:15 pm Lennart Poettering, wrote: > On Mo, 17.08.20 16:49, Andy Pieters (syst...@andypieters.me.uk) wrote: > > > Hi > > > > Is it possible (and if so, how?) to define a conflict on any other > instance > > of a template unit? > > no

[systemd-devel] Conflicts on service template

2020-08-17 Thread Andy Pieters
Hi Is it possible (and if so, how?) to define a conflict on any other instance of a template unit? E.g. I've created a vpn@ service and what I would like to do is for it to stop any other vpn@ instance when another is started. Yes, I do know that some people want to have a VPN connection to

Re: [systemd-devel] Extend service runtime

2020-05-05 Thread Andy Pieters
On Tue, 5 May 2020 at 07:56, Lennart Poettering wrote: > A service for which sd_notify() is enabled can send > an EXTEND_TIMEOUT_USEC= message to the service manager, in order to > extend its timeouts. Wouldn't that work for you? > > That sounds perfect, thank you :)

Re: [systemd-devel] Extend service runtime

2020-05-04 Thread Andy Pieters
On Mon, 4 May 2020 at 23:11, Mantas Mikulėnas wrote: > > > So this is basically for implementing sudo-like caching for 2FA? > > Yes that's exactly it. > What authentication methods are involved here? > Using yubikey + password when 2F is active, using hostkey when not > Seems like there are

Re: [systemd-devel] Extend service runtime

2020-05-04 Thread Andy Pieters
On Mon, 4 May 2020 at 15:51, Andy Pieters wrote: > Hi > > I'm trying to accomplish the following: > > An event happens -> I start a systemd service in response > after RuntimeMaxSec is reached service terminates and cleans up event > > Should a second event

[systemd-devel] Extend service runtime

2020-05-04 Thread Andy Pieters
Hi I'm trying to accomplish the following: An event happens -> I start a systemd service in response after RuntimeMaxSec is reached service terminates and cleans up event Should a second event happen whilst RuntimeMaxSec is not yet reached the preference would be to reset RuntimeMaxSec of

Re: [systemd-devel] ^] 3 times which key is it

2020-04-20 Thread Andy Pieters
On Mon, 20 Apr 2020 at 16:29, Damian Ivanov wrote: > > Please enlighten me: which key is ^] > > ^ means press and hold control ] means the key that shows the right square bracket ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] Systemd-resolved: --set-domains limited to 32 domains

2020-04-15 Thread Andy Pieters
On Wed, 15 Apr 2020 at 21:46, Tarun Chinmai Sekar wrote: > > Hello Lennart, > Thank you for the quick response. I'd love to submit a PR to increase the > limit. Can you please point me to right parts of the code? How about ... git clone ... cd systemd grep 32 -R . ? Sorry for the facetious

[systemd-devel] systemd && fanotify / path activation

2020-04-08 Thread Andy Pieters
Hi list I'm trying to satisfy PCI requirements by having on-access virus scanning on servers involved with card-holder data. Normally we could use clamav which has got on-access scanning, but this has been removed Could we get systemd to help out by using its fanotify start a unit to scan an

Re: [systemd-devel] your are happier but without become static some service I can't loggin by console-getty et getty@tty1 services

2020-04-07 Thread Andy Pieters
On Tue, 7 Apr 2020 at 23:37, Dorian ROSSE wrote: > > Sorry I was say an error > > I can't start them they happen crash Try getting help here Dorian https://forums.fedora-fr.org/ ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] your are happier but without become static some service I can't loggin by console-getty et getty@tty1 services

2020-04-07 Thread Andy Pieters
On Tue, 7 Apr 2020 at 23:35, Dorian ROSSE wrote: > > I can't enable them > Why? What happens when you try? ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] your are happier but without become static some service I can't loggin by console-getty et getty@tty1 services

2020-04-07 Thread Andy Pieters
> On Tue, 7 Apr 2020 at 23:24, Dorian ROSSE wrote: > > Because console-getty and getty@tty1 service are disabled, > > > > I can start but I want the both service become static, > Why not just enable them? systemctl enable console-getty.service getty@tty1.service ?

Re: [systemd-devel] systemd-networkd override hostname not being sent to DHCP

2020-04-02 Thread Andy Pieters
On Thu, 2 Apr 2020 at 15:32, Susant Sahani wrote: > > Itshould be like this > > [DHCPv4] > > SendHostname=true > > Hostname=myhostname > Thank you Susant that's what it was :) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] systemd-networkd override hostname not being sent to DHCP

2020-04-02 Thread Andy Pieters
Hi I have a network file like this: --- [Match] Name=enp2s0 [Network] DHCP=ipv4 Domains=faster rstore Hostname=myhostname SendHostname=True After saving the file, doing a systemctl daemon-reload and a systemdctl restart systemd-networkd it would seem that this is still not being applied.

Re: [systemd-devel] dockerd broken docker works without It own docker image but need

2020-03-27 Thread Andy Pieters
-unites I hope this finally helps for you Dorian On Fri, 27 Mar 2020 at 22:03, Andy Pieters wrote: > > Dorian > > > All of us on this list here are wondering the same thing. > > Where do you get your ideas from?! > > To clarify, systemd is not an engine for any othe

Re: [systemd-devel] three morning service unwant to start too after write and execute right giving

2020-03-25 Thread Andy Pieters
On Wed, 25 Mar 2020 at 09:13, Andy Pieters wrote: > > Dear Dorian > > You have already indicated the reason for the service failing. > > What do you expect us to do about it? > > It's not a systemd issue. > > Please get support from a forum such as Linuxquestions o

Re: [systemd-devel] firewalld subject: allowing icmp echo-request

2019-12-06 Thread Andy Pieters
On Fri, 6 Dec 2019 at 13:08, Kenneth Porter wrote: > > --On Friday, December 06, 2019 12:17 PM +0000 Andy Pieters > wrote: > > > This is on Centos 7.7.1908 and firewalld 0.6.3 > > > > I could not find a firewalld-specific mailing list and I hope it is ok > >

[systemd-devel] firewalld subject: allowing icmp echo-request

2019-12-06 Thread Andy Pieters
Hi everyone This is on Centos 7.7.1908 and firewalld 0.6.3 I could not find a firewalld-specific mailing list and I hope it is ok to ask it here. I wanted to allow pings on a LAN server and have tried a number [1] of [2] different [3] things[4]. After adding the direct rules and inspecting the

Re: [systemd-devel] Antw: Re: Unexpected behaviour not noticed by systemctl command

2019-10-08 Thread Andy Pieters
On Tue, 8 Oct 2019 at 10:47, Reindl Harald wrote: > > > > Am 08.10.19 um 08:09 schrieb Ulrich Windl: > >>>> Reindl Harald schrieb am 07.10.2019 um 12:48 in > > Nachricht <8c0ef6cf-7b51-c257-d974-b4b39b489...@thelounge.net>: > > > >> Am 07.

Re: [systemd-devel] Unexpected behaviour not noticed by systemctl command

2019-10-07 Thread Andy Pieters
On Mon, 7 Oct 2019 at 11:48, Reindl Harald wrote: > > > > Am 07.10.19 um 12:43 schrieb Andy Pieters: > > Just lately ran into a fumble. I was trying to stop and disable a > > service and I typed in: > > > > systemctl stop --now example.service

[systemd-devel] Unexpected behaviour not noticed by systemctl command

2019-10-07 Thread Andy Pieters
Hi guys Just lately ran into a fumble. I was trying to stop and disable a service and I typed in: systemctl stop --now example.service The service duly stopped but wasn't disabled because the --now switch is only applicable on the disable/enable/mask commands However, shouldn't it be good

Re: [systemd-devel] Antw: Re: /etc/fstab obsolete?

2019-09-02 Thread Andy Pieters
On Mon, 2 Sep 2019 at 06:44, Ulrich Windl wrote: > Also you have to distinguish hating a product from hating some individual > person, and "all the" time is definitely an exaggeration. > That distinction is very hard for the persons that spend a lot of their time and money into making the

Re: [systemd-devel] Antw: Re: Antw: /bin/systemctl vs /usr/bin/systemctl

2019-08-07 Thread Andy Pieters
On Wed, Aug 7, 2019 at 1:20 PM Reindl Harald wrote: > > BTW: what MUA uses "Antw:" so that even the "clean subject" extension > fails because it expects "Re:" or "AW:" > > Antw is short for Antwoord, which is Dutch for answer/reply, so I imagine he configured it that way to match his language

Re: [systemd-devel] /bin/systemctl vs /usr/bin/systemctl

2019-08-06 Thread Andy Pieters
On Tue, Aug 6, 2019 at 3:44 PM Thomas Güttler wrote: > I just realized that the location of systemctl varies across linux > distributions. > > Ubuntu: /bin/systemctl > SuSE: /usr/bin/systemctl > > Which one do you think is better? > Obviously /usr/bin since /bin is a symbolic link to /usr/bin

Re: [systemd-devel] Failed to start apache2 with error code exited 1 failure

2019-05-20 Thread Andy Pieters
Dorian, n’oubliez pas que cette liste concerne des problèmes spécifiques à systemd. (Please remember that this list is for systemd-specific problems only) Your own output mentions an apache configuration issue. On Mon, May 20, 2019 at 10:24 AM Dorian ROSSE wrote: > Hello, > > > My apache2

Re: [systemd-devel] ExecStartPre checking conf

2019-05-19 Thread Andy Pieters
On Sun, May 19, 2019 at 11:26 AM Reindl Harald wrote: > > > Am 19.05.19 um 11:45 schrieb Olaf van der Spek: > > ExecStartPre is sometimes used to check the configuration. Does this > make sense? > > It seems this causes a lot of code to run twice, as the configuration > > is checked on the real

Re: [systemd-devel] how to unsubscribe ? yeah you don't dream lol

2018-12-01 Thread Andy Pieters
Dorian It isn't that you are a boring person or aren't welcome here. It is just that this list is for systemd development issues only. How to unsubscribe? mail to systemd-devel-requ...@lists.freedesktop.org with subject unsubscribe On Sat, Dec 1, 2018 at 10:06 AM Andy Pieters wrote

[systemd-devel] (off topic) tldp.org

2018-11-13 Thread Andy Pieters
Hi guys Apologies for the off-topic question but is tldp.org working for you or do you know what's going on with it? I always considered tldp.org a prominent website so I'm surprised to see it disappear quietly into the night... ___ systemd-devel

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Andy Pieters
On Mon, Nov 5, 2018 at 2:38 PM Lennart Poettering wrote: Note that you can combined OnCalendar= (i.e. calendar time events) and > OnUnitInactiveSec= and friends (i.e. monotonic time events) in a > single .timer unit. > Until this is implemented I think I will just do a `at -t 201901010325

Re: [systemd-devel] Add timer exception

2018-11-05 Thread Andy Pieters
On Mon, Nov 5, 2018 at 10:05 AM Jérémy Rosen wrote: > I would have my timer be duration-based instead of calandar based > (assuming that fits your need) > > You could use one of the following > > OnActiveSec=48h (two days after the timer last triggered > OnUnitActiveSec=48h (two days afte the

[systemd-devel] Add timer exception

2018-11-05 Thread Andy Pieters
Dear Systemd list I have got a job that I want to execute every other day. The job is rather lengthy and takes more than 24 hours to complete but less than 48. So here are my criteria: Start today Start the day after tomorrow (t+2d)*1 Start the (t+2d)*2 Start 2 days after that (t+2d)*n My

Re: [systemd-devel] mdadm doesn't works

2018-10-14 Thread Andy Pieters
Dorian Veuillez ne pas utiliser cette liste pour les demandes d'assistance générales. Seules les questions relatives au développement de systemd sont les bienvenues ici On Sat, Oct 13, 2018 at 9:29 PM Dorian ROSSE wrote: > > #systemctl status mdadm > > ● mdadm.service > >Loaded: masked

Re: [systemd-devel] Auto fsck on hotplug

2017-09-22 Thread Andy Pieters
On 22 September 2017 at 16:03, Andy Pieters <pieters.andy+syst...@gmail.com> wrote: > > > On 22 September 2017 at 15:51, Lennart Poettering <lenn...@poettering.net> > wrote: > >> On Fr, 22.09.17 15:21, Andy Pieters (pieters.andy+syst...@gmail.com) >> wr

Re: [systemd-devel] Auto fsck on hotplug

2017-09-22 Thread Andy Pieters
On 22 September 2017 at 15:51, Lennart Poettering <lenn...@poettering.net> wrote: > On Fr, 22.09.17 15:21, Andy Pieters (pieters.andy+syst...@gmail.com) > wrote: > > > Hi all > > > > Apologies if already covered or not suitable for this mailing list. > >

[systemd-devel] Auto fsck on hotplug

2017-09-22 Thread Andy Pieters
Hi all Apologies if already covered or not suitable for this mailing list. As the title says, does anyone have any ideas on autofsck on hotplugging a USB storage device containing jfs. Mount always fails if the jfs is dirty, but a single fsck is all that is needed to make it mountable again...

[systemd-devel] Fwd: container networking and iptables

2015-11-26 Thread Andy Pieters
Hi Johannes You can make the changes w/o tearing down the iptables. I must admit I have been known to make changes directly to the iptables rules file myself, but reloading the firewall for every change isn't always practicable. Because of that I have adopted a policy of making the change to