Re: [systemd-devel] Help: Questions regarding systemd service order

2024-11-12 Thread Silvio Knizek
Am Dienstag, dem 12.11.2024 um 02:13 -0800 schrieb Tony Rodriguez: > ``` > Hoping I can accomplish the following via a simple UNIT modification or > service script? > > > Questions: > > A)  How can my service always runs "last" within local-fs-pre.target? > > For Example: > > Need my service

Re: [systemd-devel] system is not match systemd.link configs

2024-10-28 Thread Silvio Knizek
Am Montag, dem 28.10.2024 um 17:56 + schrieb Henti Smith: > On Mon, 28 Oct 2024 at 13:47, Andrei Borzenkov > <[arvidj...@gmail.com](mailto:arvidj...@gmail.com)> wrote: > > > On Mon, Oct 28, 2024 at 3:07 PM Henti Smith > > <[he...@gaydonsmith.co.uk](mailto:he...@gaydonsmith.co.uk)> wrote: >

Re: [systemd-devel] Springboot and systemd, clean shutdown

2024-10-02 Thread Silvio Knizek
Am Mittwoch, dem 02.10.2024 um 12:58 -0400 schrieb Brian Reichert: > ``` > My goal: > > Under SLES12 SP5 running systemd-228, I want to cleanly terminate > a Java-based SpringBoot application. > > My problem: > > systemd (or at least the version available to me) seemingly is > terminati

Re: [systemd-devel] Networkd: How to diagnose interface set to "unmanaged"?

2024-09-12 Thread Silvio Knizek
Am Donnerstag, dem 12.09.2024 um 11:09 -0600 schrieb Ben Little: > Hello this is related to an issue I am experiencing on Manjaro. I have raised > the issue here: > [https://forum.manjaro.org/t/systemd-networkd-reports-device-as-unmanaged/167912](https://forum.manjaro.org/t/systemd-networkd-repor

Re: [systemd-devel] Problem expanding environment variables

2024-09-06 Thread Silvio Knizek
Am Freitag, dem 06.09.2024 um 10:18 +0200 schrieb Thomas Köller: > I am having problems expanding environment variables in a service file. > This test serivice illustrates the problem: > > `root@yoga:/etc/systemd/system# cat varexp.service` > > ```ini > [Unit] > Description = Test environment

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Silvio Knizek
Am Donnerstag, dem 15.08.2024 um 14:57 +0100 schrieb Henti Smith: > > Hi Henti, > > > > why can't you [Match] onto `Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET > > Controller"`? Is your systemd older than 243? Than you should really update. > > > > BR > > Silvio > Hi Silvio,  > > I'm on

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Silvio Knizek
Am Donnerstag, dem 15.08.2024 um 14:07 +0100 schrieb Henti Smith: > Hello again. > > I've tried multiple ways of matching and none seem to be working.  > > I removed all the configuration in /etc/systemd/network, run update-initramfs > and rebooted. > > The resulting network configuration for

Re: [systemd-devel] Updating network file during boot

2024-08-13 Thread Silvio Knizek
Am Dienstag, dem 13.08.2024 um 17:16 +0100 schrieb Henti Smith: > Good day everybody. > > I've searched high and low and cannot seem to find an answer for what I'm > trying to do. The most relevant I found was this [1] thread in 2020, but only > because I'm using a script to change the contents

Re: [systemd-devel] machinectl poweroff: wait until shutdown is done

2024-08-05 Thread Silvio Knizek
Am Montag, dem 05.08.2024 um 15:27 + schrieb Joel GUITTET: > Hello > Is there a way when using "machinectl poweroff " to wait until the > container is effectively totally stopped ? So that the following command > after machinectl poweroff can be executed safely (in my case un-mounting the >

Re: [systemd-devel] Submitting a service activation to remote mounts success

2024-02-06 Thread Silvio Knizek
Am Dienstag, dem 06.02.2024 um 16:15 +0100 schrieb Thomas HUMMEL: > Hello, >=20 > I'm using systemd-239-74 on RHEL 8.8 EUS. >=20 > I was wondering if one can express the following : >=20 > start some service *only and only if/when* all remote mounts (ex: nfs,= =20 > some parallel fs) has *succeeded

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Silvio Knizek
Am Mittwoch, dem 27.09.2023 um 10:31 +0100 schrieb Mark Rogers: > On Wed, 27 Sept 2023 at 10:18, Mantas Mikulėnas > <[graw...@gmail.com](mailto:graw...@gmail.com)> wrote: > > > So now I'm curious: if the first command you run is to bring the interface > > *down*, then what exactly brought it up?

Re: [systemd-devel] bind-mount of /run/systemd for chrooted bind9/named

2023-07-03 Thread Silvio Knizek
Hi Marc, why is it suggested to run `named` within its own chroot? For security reasons? This can be achieved much easier with systemd native options. Something like `/etc/systemd/system/named.service` ```ini [Unit] Description=Internet domain name server After=network.target [Service] Type=n

Re: [systemd-devel] VirtualBox VM as a unit failures

2022-09-01 Thread Silvio Knizek
Am Donnerstag, dem 01.09.2022 um 19:17 -0300 schrieb Sergio Belkin: > > > > El jue, 1 sept 2022 a las 16:22, Silvio Knizek > () escribió: > > Am Donnerstag, dem 01.09.2022 um 14:59 -0300 schrieb Sergio Belkin: > > > > > > This is the unit file: > >

Re: [systemd-devel] VirtualBox VM as a unit failures

2022-09-01 Thread Silvio Knizek
Am Donnerstag, dem 01.09.2022 um 14:59 -0300 schrieb Sergio Belkin: > > This is the unit file: > [Unit] > Description=VirtualBox VM %i > After=network.target vboxdrv.service > Before=runlevel2.target shutdown.target > > [Service] > Type=forking > Restart=no > TimeoutSec=5min > IgnoreSIGPIPE=no >

Re: [systemd-devel] Disabling cpufreq/boost at boot time sometimes fails

2022-07-12 Thread Silvio Knizek
Am Dienstag, dem 12.07.2022 um 18:55 +0200 schrieb Thomas HUMMEL: > Hello, > > I'm using systemd-239-45 on RHEL 8.4 x86_64 AMD nodes on which I disable > Turbo Core/Turbo Boost by writing '0' into the following file: > > /sys/devices/system/cpu/cpufreq/boost > > I want it to be disabled automat

Re: [systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

2022-02-21 Thread Silvio Knizek
Am Montag, dem 21.02.2022 um 22:16 +0100 schrieb Felip Moll: > Silvio, > > As I commented in my previous post, creating every single job in a > separate slice is an overhead I cannot assume. > An HTC system could run thousands of jobs per second, and doing extra > fork+execs plus waiting for system

Re: [systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

2022-02-21 Thread Silvio Knizek
Am Montag, dem 21.02.2022 um 18:07 +0100 schrieb Felip Moll: > The hard requirement that my project has is that processes need to > live even if the daemon who forked them dies. > Roughly it is how a batch scheduler works: one controller sends a > request to my daemon for launching a process in the

Re: [systemd-devel] [systemd‑devel] Q: Perform action for reboots happen too frequently?

2022-02-18 Thread Silvio Knizek
Am Freitag, dem 18.02.2022 um 09:52 +0100 schrieb Ulrich Windl: > > > > Thanks Silvio! > > That looks like I was after. But admitted: I had expected that > systemd could > do some of the "shell scripting magic" (like counting and comparing). > > Regards, > Ulrich Well, counting and comparing goes i

Re: [systemd-devel] Antw: [EXT] Re: [systemd‑devel] Q: Perform action for reboots happen too frequently?

2022-02-18 Thread Silvio Knizek
Am Donnerstag, dem 17.02.2022 um 10:50 +0100 schrieb Ulrich Windl: > > > > Lennart Poettering schrieb am > > > > 16.02.2022 um 18:17 > in > Nachricht : > > On Mi, 16.02.22 14:09, Ulrich Windl > > (ulrich.wi...@rz.uni‑regensburg.de) > wrote: > > > > > Hi! > > > > > > I wonder: Is it possible with s

Re: [systemd-devel] PIDFile creation logic

2021-10-18 Thread Silvio Knizek
Am Montag, dem 18.10.2021 um 12:43 -0700 schrieb Kenneth Porter: > I just installed the new-to-EPEL ndppd service and am seeing this in my log: > > Oct 17 21:10:08 saruman systemd: Can't open PID file > /var/run/ndppd/ndppd.pid (yet?) after start: No such file or directory > > Examining the source,

Re: [systemd-devel] Mounting a new device to a mount point with an old (auto-generated) but inactive mount unit triggers an immediate unmount

2021-07-07 Thread Silvio Knizek
Am Mittwoch, dem 07.07.2021 um 15:21 +0200 schrieb Christian Rohmann: > Hello systemd-devel, > > > we recently replaced a broken drive on a server and ran into a strange > issue in regards to a mount > > > > 1) It started with the old device not being reachable anymore and > therefore the cryp

Re: [systemd-devel] sibling DNS lookup of nspawn containers

2021-06-18 Thread Silvio Knizek
Am Freitag, dem 18.06.2021 um 14:52 -0700 schrieb Johannes Ernst: > > Thanks, Silvio, but no luck: > > I have host, container a and container b. > > In both containers, .network for host0 has LLMNR=yes in the [Network] > section > > The host has LLMNR=yes in the [Resolve] section of > /etc/systemd/

Re: [systemd-devel] Reloading configuration after mount unit

2021-06-18 Thread Silvio Knizek
Am Freitag, dem 18.06.2021 um 19:48 +0200 schrieb Norbert Lange: > Am Fr., 18. Juni 2021 um 16:35 Uhr schrieb Silvio Knizek : > > > > Hi Norbert, > > > > make sure your /usr/local mount is done in the initrd and that you use > > »systemctl link /path/to/unit.serv

Re: [systemd-devel] Reloading configuration after mount unit

2021-06-18 Thread Silvio Knizek
Am Freitag, dem 18.06.2021 um 15:04 +0200 schrieb Norbert Lange: > Hello, > > I have an extra mount for /usr/local (Tools + Services which are just > useful for development), classically done vie /etc/fstab. > > Now there are a few systemd services within /usr/local/lib and systemd > does not seem

Re: [systemd-devel] sibling DNS lookup of nspawn containers

2021-06-18 Thread Silvio Knizek
Am Donnerstag, dem 17.06.2021 um 20:26 -0700 schrieb Johannes Ernst: > I’d like to be able to DNS lookup container b from within container a, if > both were started with systemd-nspawn as siblings of each other, and shown as > a and b in machinectl list. > > man nss-mymachines specifically notes

Re: [systemd-devel] bamboo agent does not start from systemd

2021-06-16 Thread Silvio Knizek
Am Mittwoch, dem 16.06.2021 um 10:00 -0400 schrieb vad...@gmail.com: > Bamboo agent install provides bamboo-agent.sh as part of the install. > It starts the bamboo agent. It works fine provided there is no service > unit file defined. If I define the service unit file it does not start > with syste

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

2021-06-13 Thread Silvio Knizek
Am Sonntag, dem 13.06.2021 um 10:49 -0400 schrieb Saint Michael: > This is not a human attacker, but a robot. My question is: if I apply > chattr +i to $(pkg-config --variable=systemdsystemconfdir systemd), > will the OS continue to work fine or this is nonsense? > Philip Systemd will work totally

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

2021-06-13 Thread Silvio Knizek
Am Sonntag, dem 13.06.2021 um 09:32 -0400 schrieb Saint Michael: > One of the most dramatic hacks to 50+ servers of mine is a bitcoin > miner, xmrig. It installs a service file at /etc/systemd/system, > enables it and kills the machine.  > Nobody knows how it propagates. I think that SSHD has been

Re: [systemd-devel] rg...@outlook.com

2021-06-07 Thread Silvio Knizek
Am Montag, dem 07.06.2021 um 21:26 +0530 schrieb Aravindhan Krishnan: > Hi Folks, > > I am finding anomalous behavior when I am trying to run dhclient > process inside my docker container in vanilla Ubuntu 16.04 host. The > service gets into "deactivating" state and is stuck forever. In the > mail

Re: [systemd-devel] how to prevent systemd-logind from moving process to other cgroups when executing su command

2021-05-25 Thread Silvio Knizek
Am Dienstag, dem 25.05.2021 um 22:23 +0800 schrieb 吾为男子: > Systemd provides pam_systemd.so for PAM module and for many commands, > such as su command, pam_systemd.so will be called and the process > will be moved to the cgroup that systemd managed. Regardless your problem, `su` is never the solutio

Re: [systemd-devel] permanent autologin

2021-05-02 Thread Silvio Knizek
Am Sonntag, dem 02.05.2021 um 19:14 +0200 schrieb Emanuel Berg: > Silvio Knizek wrote: > > > > > your path is wrong. You want the following: > > > > /etc/systemd/system/getty@tty1.service.d/10-autologin.conf > > I don't have that file or even directory, but

Re: [systemd-devel] permanent autologin

2021-05-01 Thread Silvio Knizek
Am Samstag, dem 01.05.2021 um 07:17 +0200 schrieb Emanuel Berg: > I do autologin like this: > >    ExecStart=-/sbin/agetty -a incal --noclear %I $TERM > >    /etc/systemd/system/getty.target.wants/getty@tty1.service # line ~39 > >    $ sudo systemctl daemon-reload > > However, it seems to disappear

Re: [systemd-devel] early mounts in systemd

2021-04-30 Thread Silvio Knizek
Am Freitag, dem 30.04.2021 um 10:39 -0400 schrieb Rick Winscot: > My question for anyone on the list, is the method outlined below a > reasonable solution to mounting /var early in the start-up cycle? > > Or... is there a better way? Some trimming > Hi Rick, by definition if you need to mount /va

Re: [systemd-devel] "Correct" way to obtain DHCP lease info?

2021-04-21 Thread Silvio Knizek
Am Mittwoch, dem 21.04.2021 um 14:24 -0400 schrieb Bruce A. Johnson: > Is there a correct way to obtain information about the DHCP lease > received by systemd-networkd's DHCP client functionality? It was easy > enough to find SERVER_ADDRESS in /var/run/systemd/netif/leases/4, but > there is a bi

Re: [systemd-devel] .local searches not working

2021-04-09 Thread Silvio Knizek
Am Freitag, dem 09.04.2021 um 14:27 -0400 schrieb Phillip Susi: > What special treatment does systemd-resolved give to .local domains? > The corporate windows network uses a .local domain and even when I point > systemd-resolved at the domain controller, it fails the query without > bothering to as

Re: [systemd-devel] hostnamectl set-hostname non-admin user

2021-04-06 Thread Silvio Knizek
Am Dienstag, dem 06.04.2021 um 16:21 +0300 schrieb Damien LEFEVRE: > Hi, > > I have an embedded device and I do not install sudo. I need to have a > non-root running the main service capable of changing the hostname. > > After spending a long afternoon on this I still have not managed. > > Here i'v

Re: [systemd-devel] Guidance on automount/unmount for external powered devices

2021-03-12 Thread Silvio Knizek
Am Donnerstag, dem 11.03.2021 um 11:00 + schrieb Patrick O'Callaghan: > Apologies in advance if this is a FAQ, or if there is a more > appropriate list for this question. I'm looking for a step-by-step > guide for the following situation: > > I have an external 2-bay USB3 drive enclosure, confi

Re: [systemd-devel] Q on serial-getty

2020-10-07 Thread Silvio Knizek
Am Mittwoch, den 07.10.2020, 08:49 +0200 schrieb Ulrich Windl: > Hi! > > I'm thinking of configuring a serial getty in SLES15 (systemd-234). First I > found that there is no manual page describing the service, and second if I > use "systemctl show serial-getty" ("systemctl show serial-getty@" doe

Re: [systemd-devel] Q: systemctl kill: "Invalid who argument 15862"

2020-05-06 Thread Silvio Knizek
Am Mittwoch, den 06.05.2020, 11:21 +0200 schrieb Ulrich Windl: > Hi! > > I have a question for systemd-228-150.82.1.x86_64 (of SLES12 SP4): > While developing a script for logrotate, I tested this command with the > following result: > > # systemctl kill -s HUP --kill-who=15862 iotwatch@LOC1.servic

Re: [systemd-devel] [systemd-level]: how to change default timezone in systemd code?

2020-04-29 Thread Silvio Knizek
Am Mittwoch, den 29.04.2020, 20:31 +0800 schrieb www: > Dear All, > > I want to change the default timezone in systemd, when it first starts, it > shows the time zone I want. How can I modify the code in systemd to implement > the function? > > thanks, > Byron Hi, the default timezone is just th

Re: [systemd-devel] systemd autofs in RH 7

2020-04-21 Thread Silvio Knizek
Am Dienstag, den 21.04.2020, 14:33 + schrieb Wieschke, Thomas: > Hi, > thanks fort he quick response. After having a first look at the man pages, I > mentioned that I would have a choice between > a fstab based solution or a unit file based one, right? > Because I have a mix of ~ 10 different

Re: [systemd-devel] systemd autofs in RH 7

2020-04-21 Thread Silvio Knizek
Am Dienstag, den 21.04.2020, 13:26 + schrieb Wieschke, Thomas: > Hi, > I hope someone can help with the following case. > > I'm writing on a RH 7 system to an automounted FS and get an disruption > because systemd (??) is, > besides working in this directory, obviously trying an umount in the

Re: [systemd-devel] Stateless system - Centos8 and overlayfs on root

2020-03-27 Thread Silvio Knizek
Am Freitag, den 27.03.2020, 10:17 -0700 schrieb Preston L. Bannister: > Looking for a sanity check from the folk how know more of systemd than do I. > Not looking for someone else to solve my problem, but could use a clue. > > Trying to figure out how to get an overlayfs root mounted early in boot

Re: [systemd-devel] Mutually exclusive (timer-triggered) services

2019-10-15 Thread Silvio Knizek
Am Montag, den 14.10.2019, 18:30 +0200 schrieb Alexander Koch: > > exactly for this you would use a flock(1) in your .service. > > Thanks for the hint, didn't have that in mind. So you're suggesting > something like this? > > # service-a.service > # (...) > [Service] > ExecStart

Re: [systemd-devel] Mutually exclusive (timer-triggered) services

2019-10-14 Thread Silvio Knizek
Am Montag, den 14.10.2019, 12:45 +0200 schrieb Alexander Koch: > Dear [systemd-devel], > > imagine you've got multiple services that perform system housekeeping > tasks, all triggered by .timer units. These services all happen to > use > a specific resource (e.g. the system package manager) so they

Re: [systemd-devel] Deferring start of service until file exists

2019-08-21 Thread Silvio Knizek
Am Mittwoch, den 21.08.2019, 09:32 +0100 schrieb Colin Hogben: > On 20/08/19 16:54, Silvio Knizek wrote: > > > The NFS root needs to be mounted in the initrd step. Else > > everything will break. With systemd in the initrd you gain the > > possibilty to depend on those un

Re: [systemd-devel] Deferring start of service until file exists

2019-08-20 Thread Silvio Knizek
Am Dienstag, den 20.08.2019, 16:32 +0100 schrieb Colin Hogben: > Hi Jérémy, thanks for responding. > > > I'm not very clear on what you are trying to do, so if my > > understanding > > is correct: > > OK, I'll try to clarify. In fact I'm lumping together several > similar circumstances. It's poss

Re: [systemd-devel] Stateless System Presets

2019-08-02 Thread Silvio Knizek
Am Donnerstag, den 01.08.2019, 16:48 + schrieb Quinn Mikelson: > I work at a company who develops a number of semi-stateless systems. > My current challenge is integrating out growing number of vendor- > specific applications and services into a system with persistent /etc > and /usr directorie

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Silvio Knizek
Am Donnerstag, den 25.07.2019, 15:55 +0530 schrieb Debraj Manna: > I have unit file which looks like below. I am seeing some of the echo > are > showing up in syslog but not in journalctl. Can someone let me know > what is > going on? > systemd version 229 running on Ubuntu 16. > > [Unit] > Descrip

Re: [systemd-devel] failing unmounts during reboot

2019-07-25 Thread Silvio Knizek
Am Donnerstag, den 25.07.2019, 11:40 +0200 schrieb Frank Steiner: > Hi, > > I'm currently discussing a problem with the SuSE support about > failing > unmounts during reboot. Tyring to debug this I realized that systemd > is not killing processes left over by some init.d script. E.g. use > the foll

Re: [systemd-devel] vconsole for handicapped or older people

2019-07-23 Thread Silvio Knizek
Am Montag, den 22.07.2019, 18:49 +0200 schrieb hp hpf: > > Silvio Knizek schrieb am Mo., 22. Juli 2019, > 13:55: > > > Am Montag, den 22.07.2019, 13:20 +0200 schrieb hp4everything: > > > Hi, > > > > > > getting older I'm nearly not able to r

Re: [systemd-devel] vconsole for handicapped or older people

2019-07-22 Thread Silvio Knizek
Am Montag, den 22.07.2019, 13:20 +0200 schrieb hp4everything: > Hi, > > getting older I'm nearly not able to read the text on a virtual > console. > I'm working with opensuse tumbleweed on a laptop and was able to > configure the KDE screen for my needs, but not the vconsole. > > Google told me tha

Re: [systemd-devel] non-dev systemd-devel package for Linux

2018-08-31 Thread Silvio Knizek
s > not provide a non-dev systemd package? That does not sound right. > > On Fri, Aug 31, 2018 at 10:35 AM, Silvio Knizek > > wrote: > > > Hi Sayeed, > > > > it is expected that header files are in the -devel packages. You > > can't > > change t

Re: [systemd-devel] non-dev systemd-devel package for Linux

2018-08-31 Thread Silvio Knizek
Hi Sayeed, it is expected that header files are in the -devel packages. You can't change this. The package "systemd" contains "udev", so in "systemd- devel" are the header files for "udev". "udev" is part of systemd. RHLE/CentOS don't split this. Why can't you just use "systemd-devel"? It just co

Re: [systemd-devel] Not able to access system device from session service

2018-08-20 Thread Silvio Knizek
Am Montag, den 20.08.2018, 19:22 +0530 schrieb deepan muthusamy: > I started one application as system service in /etc/systemd/system by > giving command "systemctl start mysystem.service". > I have one more application which i have to start as session service > in etc/systemd/user by giving comma

Re: [systemd-devel] Restarting a service as user instead as root

2018-08-13 Thread Silvio Knizek
Am Montag, den 13.08.2018, 11:28 +0200 schrieb Cecil Westerhof: > I have a service that is run as a different user as root. But only > root can > restart the service. Is there a way to make 'systemctl restart' work > for > the user that runs the service? Hi, you can either define a sudo-rule or y

Re: [systemd-devel] Local mount as a remote-fs?

2017-12-04 Thread Silvio Knizek
Am Montag, den 04.12.2017, 14:25 +0300 schrieb Andrey Klimentyev: > Hi, > > Is it possible to register local mount as a remote-fs? > > I've got a rather peculiar problem with Kubernetes and Ceph: > 1. kubelet creates an rbd device in /dev; > 2. it mounts it to some location; > 3. systemd adds loc

Re: [systemd-devel] systemctl can't execute stop actually, when service is started by other way

2017-10-27 Thread Silvio Knizek
Am Dienstag, den 27.06.2017, 13:48 +0800 schrieb 清辰: > for example: service nscd > 1.execute: systemctl stop nscd.service > stop nscd process actually > 2.execute: /usr/bin/nscd > start nscd by shell command > 3.execute: systemctl status nscd.service > inactive(dead) > systemctl can't know

Re: [systemd-devel] template service unit include.d directory

2017-05-03 Thread Silvio Knizek
Am Mittwoch, den 03.05.2017, 19:51 +0530 schrieb Anoop Alias: > Hi, > > I am trying to include extra config for a template service file > > PHP70@.service > > ## > > I created /etc/systemd/system/PHP70@.service.d/something.d/t > est.conf > > But > > systemctl start PHP70@something.service >