Re: [systemd-devel] mkosi: rpm using host machine's users/groups

2021-09-16 Thread Colin Guthrie
Colin Guthrie wrote on 01/09/2021 14:40: Colin Guthrie wrote on 01/09/2021 14:30:    rpm -qa | xargs rpm --setugids >/dev/null 2>&1 Correction: --restore is actually needed over --setugids as although only the latter is strictly needed, it seems without the former the setuid b

Re: [systemd-devel] Xorg or Wayland Environment

2021-09-21 Thread Colin Guthrie
re, possible combined with user lingering and perhaps plasma-core being the default target for your user when it shouldn't be... Hope this helps you debug things. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/

Re: [systemd-devel] when mount is delayed - start unit which depends on it - ?

2021-09-21 Thread Colin Guthrie
mounted filesystem which again triggers a target (again coupled with PartOf in the dependant services). HTHs -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/

Re: [systemd-devel] fstab automount of a mdns samba share

2021-09-28 Thread Colin Guthrie
; is also useful to make things more robust (although I'm not sure how these work with cifs). See man systemd.mount for some more info. HTHs Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Sou

Re: [systemd-devel] [systemd]: How to set systemd not to generate loop0.device and mtdblockx.device?

2021-10-11 Thread Colin Guthrie
Hi, www wrote on 09/10/2021 04:27: In our system, the whole machine starts too slowly. We want to do some optimization. I found that two services( *loop0.device and mtdblock5.device*) started slowly. I want to remove them (I personally think our system are not need them). I want to ask you how

Re: [systemd-devel] Output from `tee' is not showing up in system journal consistently on some systems

2021-10-27 Thread Colin Guthrie
round!). Appreciate any code change to work around this isn't ideal anyway, but just trying to help debug the underlying problem. This is just a random guess and might not at all be how the logging or cgroup handing works! Col -- Colin Guthrie

Re: [systemd-devel] Run reboot as normal user

2021-11-30 Thread Colin Guthrie
Mantas Mikulėnas wrote on 30/11/2021 08:42: On Tue, Nov 30, 2021 at 10:11 AM Mohamed Ali Fodha mailto:fodha.mohamed@gmail.com>> wrote: Hello, I want to run reboot as normal user using the following command: dbus-send --system --print-reply --reply-timeout=2000 --type=method

Re: [systemd-devel] Run reboot as normal user

2021-11-30 Thread Colin Guthrie
n't come into I don't think as all you're doing is talking to systemd which does all the grunt work. HTHs Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.

Re: [systemd-devel] homed: Issues with LUKS storage on btrfs

2022-01-06 Thread Colin Guthrie
Hi, Sebastian Wiesner wrote on 28/12/2021 00:04: Hello, I've experimented with homectl today, and noticed two issues when creating LUKS-lookback-backed home areas on top of a btrfs filesystem: 1) homectl resize doesn't work reliably on btrfs: It looks as if on btrfs resizing a home area requir

Re: [systemd-devel] homed: Issues with LUKS storage on btrfs

2022-01-18 Thread Colin Guthrie
results seem a little dated. Managed to get it working on Fedora 35 install with a little PAM fighting and selinux tweaks. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor ht

Re: [systemd-devel] No space left errors on shutdown with systemd-homed /home dir

2022-05-31 Thread Colin Guthrie
Hi, Neal Gompa wrote on 01/02/2022 19:55: On Tue, Feb 1, 2022 at 2:02 PM Colin Guthrie wrote: Goffredo Baroncelli wrote on 30/01/2022 09:27: On 29/01/2022 19.01, Chris Murphy wrote: On Sat, Jan 29, 2022 at 2:53 AM Goffredo Baroncelli wrote: I think that for the systemd uses cases

[systemd-devel] mkosi: Empty rpmdb after building older RPM distro on Fedora 36 host

2022-06-01 Thread Colin Guthrie
Posting here to see if anyone has any suggestions which they/I can add to the issue. Cheers Col -- Colin Guthrie gmane(at)colin.guthr.ie

Re: [systemd-devel] Q: Start network in chroot?

2022-06-13 Thread Colin Guthrie
Ulrich Windl wrote on 13/06/2022 09:09: Hi! Two questions: 1) Why can't I use "systemctl start network" in a chroot environment (e.g. mounting the system from a rescue medium to fix a defective kernel)? When I try I get: "Running in chroot, ignoring command 'start'" 2) How can I start the netw

Re: [systemd-devel] Antw: [EXT] Re: Q: Start network in chroot?

2022-06-13 Thread Colin Guthrie
Ulrich Windl wrote on 13/06/2022 14:42: Colin Guthrie schrieb am 13.06.2022 um 14:58 in Nachricht : Ulrich Windl wrote on 13/06/2022 09:09: Hi! Two questions: 1) Why can't I use "systemctl start network" in a chroot environment (e.g. mounting the system from a rescue

Re: [systemd-devel] Running actual systemd-based distribution image in systemd-nspawn

2022-06-16 Thread Colin Guthrie
Andrei Borzenkov wrote on 15/06/2022 16:56: I tried it (loop mounting qemu image): systemd-nspawn -D ./hd0 -b and it failed miserably with "Timeout waiting for device dev-disk-by...". Which is not surprising as there are no device units inside of container (it stops in single user allowing me t

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

2022-09-01 Thread Colin Guthrie
ff2-4a92-b3cd-a8dfb17513c6 --vrde config ExecStart=/usr/bin/VBoxManage startvm %i --type headless ExecStop=/usr/bin/VBoxManage controlvm %i acpipowerbutton [Install] WantedBy=default.target (End of file) What is the proper way to configure this kind of unit? Thanks in advance -- -- Serg

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

2022-09-02 Thread Colin Guthrie
he script snippet I posted does that. -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/

Re: [systemd-devel] Can /usr/lib/systemd/user/sockets.target.wants be used to autoenable a socket by a vendor package?

2022-09-19 Thread Colin Guthrie
by which route it ultimately becomes enabled if you do the links manually. Hope that helps explain things. Col -- Colin Guthrie

Re: [systemd-devel] systemd has not the same behaviour following the version of the kernel ; StopWhenUnneeded no longer works

2022-09-28 Thread Colin Guthrie
usb1-1\x2d1.device Best regards --- Eric-Olivier Perrin eric-olivier.per...@sysnav.fr <mailto:eric-olivier.per...@sysnav.fr> SYSNAV 72, rue Emile Loubet 27200 Vernon (France) +33.(0)2.78.77.03.46 www.sysnav.com <http://www.sysnav.com/en/> -- Colin Guthrie

Re: [systemd-devel] user unit with delayed users homes mount - ?

2022-10-14 Thread Colin Guthrie
es are mounted it is rather hard to answer. Are they mounted from within /etc/fstab? Homes are mounted by other daemons started later(by systemd). Have you tried to set those daemons Before=systemd-logind.service? Or perhaps Before=systemd-user-sessions.service? -- Colin Guthrie gmane(at

Re: [systemd-devel] Systemd logo usage

2023-03-08 Thread Colin Guthrie
branding before. I immediately thought it looked like Pingu's head when he does his "noot noot" noise! https://media.tenor.com/bUe5f8xAVckC/pingu-noot-noot.gif A penguin reference seems appropriate too! -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.

Re: [systemd-devel] Bugfix release(s)

2019-01-16 Thread Colin Guthrie
e list when this happens would be nice too, as some folk will likely still follow the list more than they login to github (and for those that do login to github they may have many other projects so it could get lost in the noise) Col -- Colin Guthrie gmane(at)colin.guthr.ie http://

Re: [systemd-devel] systemd-nspawn: access to disk devices does not work on centos 7/systemd 219

2019-01-17 Thread Colin Guthrie
e is used in a "fairly large" deployment :-p Worth having a little look over (I haven't had the need yet - like yourself I've found workarounds for the itches I need to scratch that are fixed in newer systemds - but may do at some point) Col -- Colin Guthrie gmane(at)col

Re: [systemd-devel] Fail to load network modules properly

2019-01-29 Thread Colin Guthrie
he module is compiled into the kernel or included in the initrd, then the firmware file would also typically have to be included in the initrd too. dracut takes care of all this for you, not sure about other initrd generators. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.

Re: [systemd-devel] How to suppress "A start job is running for offline-updates" knight-rider status output?

2019-02-28 Thread Colin Guthrie
e-update to get progress reports anyway, so it knows the context in which it's run. I could simply suppress the sending of SIGRTMIN+22 and leave just the pk-offline-update messages? Obviously would need a tweak to plymouth, but perhaps it's not too crazy? Just a thought. Col -- Colin Gu

Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Colin Guthrie
27;s being told to start writing to /var/log/journal). If this is the case, then why don't you just amend that bootstrapping to bind mount /var/log/journal to persistent storage rather than letting it be just a subdir on the tmpfs? That way you can get your mem-only syslog (or n

Re: [systemd-devel] systemd prerelease 242-rc4

2019-04-09 Thread Colin Guthrie
d/archive/v242-rc4.tar.gz > > NOTE: This is ☠️ pre-release☠️ software. Do not run this on production > systems, but please test this and report any issues you find to GitHub: > > https://github.com/systemd/systemd/issues/new?template=Bug_report.md > > Changes since the p

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-07 Thread Colin Guthrie
et away from that eventually) Just out of curiosity, when /boot is the EFI (as is recommended in the BLS) how do you deal with symlinks when the FS is FAT based? Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open S

Re: [systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

2019-10-07 Thread Colin Guthrie
n run I could run: pkexec /usr/bin/systemctl start --no-block my-template-unit@whatever as "my-permitted-user" without any prompt. It's a nasty work around, but for me it was all wrapped up in a script rather than manually run, so it didn't matter too much really. You c

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

2019-10-10 Thread Colin Guthrie
s points if it issued a git-style "did you mean systemctl disable --now ..." error response. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseA

Re: [systemd-devel] How to control the login prompt from my application service unit file?

2019-10-15 Thread Colin Guthrie
user can still login) but if any user tries to login, the contents of the file can explain to the user why they cannot login (rather than them just sitting there with a delay). Just a thought about an alternative approach that you may want to explore. Col -- Colin Guthrie g

Re: [systemd-devel] Issue on Ordering of systemd services during boot

2019-12-10 Thread Colin Guthrie
after /A.service/ during boot. However, > even after setting */After=A.service/*//and */BindsTo=A.service/*//in > /B.socket/, sometimes /B.socket/ is starting before /A.service/. > >   > > Please let me know if I am missing something. > >   > >   > > Thanks and Regards, > > Yashashvi > >

Re: [systemd-devel] Antw: [EXT] Re: Accpetance of Environment Variables in Attributes

2020-06-26 Thread Colin Guthrie
services as nobody. They could, in theory, mess with each other in some cases (deleting each others temporary files, sockets etc). So one dodgy/vulnerable "nobody" service could then interfere with a more robust "nobody" service just because they are running as the same

Re: [systemd-devel] [PATCH 0/6] RFC: Initial implementation of mount table handling using libmount kernelwatch

2020-08-03 Thread Colin Guthrie
s current state for that discussion process. It can be an RFC Pull request. Just means the discussion can all take place in Github and can go through various iterations there. So, in short, don't worry about it being fully "ready" before pushing and doing a pull requests. Co

Re: [systemd-devel] Shutdown order in systemd

2020-08-03 Thread Colin Guthrie
outh Power Off Screen. > > Aug 3 21:23:09 shao-redis-prd-base systemd: Started Show Plymouth Power Off > Screen. > > [ OK ] Stopped Dynamic System Tuning Daemon. > > Aug 3 21:23:09 shao-redis-prd-base systemd: Stopped Dynamic System Tuning > Da

Re: [systemd-devel] Shutdown order in systemd

2020-08-11 Thread Colin Guthrie
tps://github.com/ryran/reboot-guard > > Thanks! > >> On Aug 4, 2020, at 4:01, Colin Guthrie > <mailto:gm...@colin.guthr.ie>> wrote: >> >> Zheng SHAO wrote on 03/08/2020 13:31: >>> Hello, >>> >>> We are finding a robust way to handle AC

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-08 Thread Colin Guthrie
gt; >>> than state, acquired dynamically via DHCP, hence most distros don#t > >>> configure it in /etc so much anymore, but manage it in /run (where > >>> transient state is generally kept), and only keep a compat > symlink in > >>

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-09 Thread Colin Guthrie
Alvin Šipraga wrote on 08/09/2020 22:54: > Hi, > > On 9/8/20 4:12 PM, Colin Guthrie wrote: > >> 2. Set your /etc/ master image to make /etc/localtime to be a symlink to >> /run/localtime and then ensure /run/localtime is a symlink to the >> appropriate file in /

Re: [systemd-devel] systemctl reboot/halt with non-privilege user

2020-10-28 Thread Colin Guthrie
ically gave users full rights to things like service management and reboot etc, so it's possible a rogue/buggy policy file from an unrelated package is causing this behaviour too. -- Colin Guthrie gmane(at)colin.guthr.ie https://colin.guthr.ie/ Day Job: Tribalogic Limited https://www.tribalo

Re: [systemd-devel] Workaround for system upgrade bug suggestions

2020-11-03 Thread Colin Guthrie
Barry wrote on 02/11/2020 22:20: > What is the work around until the bug is fixed? I'd imagine you could just disable lingering for the users in question before running the dnf upgrade command? Not ideal but it's a workaround as you asked! Col -- Colin Guthrie gmane(at)colin.

Re: [systemd-devel] Help with Systemd + Apache 2.4 - CentOS 7

2020-11-24 Thread Colin Guthrie
Lucas Possamai wrote on 23/11/2020 21:57: > I don't find any extra info in the Apache Logs. The attached error message > is the only log I can see. You will get more info by running e.g. systemctl status httpd. As others have hinted at, if the systemd unit for httpd is using Type=notify, you must

[systemd-devel] mkosi question: third party repos + dnf modules

2020-12-07 Thread Colin Guthrie
Hiya, Trying to create some CentOS 8 images with mkosi 8 Is it possible to use the --repositories argument to mkosi to enable a third party repository? If so can you tell me the secret syntax? I've tried: --repositories=https:///mirrorlist --repositories=https:///directlink both say: u

Re: [systemd-devel] mkosi question: third party repos + dnf modules

2020-12-08 Thread Colin Guthrie
Reindl Harald wrote on 07/12/2020 21:34: > and how is that systemd relevant at all? https://github.com/systemd/mkosi ^^^ Maybe that bit? The fact that mkosi is a systemd project? If you don't have anything positive to add, it's a lot less effort to just do nothing! Col

Re: [systemd-devel] mkosi question: third party repos + dnf modules

2020-12-08 Thread Colin Guthrie
I can always remove it again after. Have subscribed to the issue. Cheers Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http

Re: [systemd-devel] service kills application differently on shutdown vs on stop

2020-12-14 Thread Colin Guthrie
John wrote on 14/12/2020 12:52: > Note that it looks > like I will need to add some udev rules to allow the kodi user to > shutdown the system which it could do when the PAMName=login was > present. Just a small hint, but it might be policykit rules you need to add rather than udev rules. Col ___

Re: [systemd-devel] consider dropping defrag of journals on btrfs

2021-02-11 Thread Colin Guthrie
those journal files suffixed with a ~. Only ~ suffixed journals represent a dirty journal file (i.e. from an unexpected shutdown). Journals rotate for other reason too (e.g. user request, overall space requirements etc.) which might explain this wasted space? Just a thought. Col -- Colin

Re: [systemd-devel] consider dropping defrag of journals on btrfs

2021-02-11 Thread Colin Guthrie
Phillip Susi wrote on 11/02/2021 16:29: Colin Guthrie writes: Are those journal files suffixed with a ~. Only ~ suffixed journals represent a dirty journal file (i.e. from an unexpected shutdown). Nope. Journals rotate for other reason too (e.g. user request, overall space requirements

Re: [systemd-devel] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Colin Guthrie
Jan Hugo Prins wrote on 25/03/2021 14:11: Hi, > Does systemd give me a different way to check if the time is in sync? > Is there a way to create this dependency without implying a restart when > ntpd restarts? https://unix.stackexchange.com/questions/388586/systemd-requires-vs-wants

[systemd-devel] systemd on RHEL 8/CentOS 8 adding leading / to mount What= values

2021-07-05 Thread Colin Guthrie
Hi all, I've been running happily on CentOS 8.3 for a while but did an update recently to 8.4 and systemd-239-45.el8_4.1.x86_64 (old version but with a ton of backports as I'm sure you know/can imagine) Since then my mount units for VirtualBox Shared Folders stopped working. I traced this do

Re: [systemd-devel] Upgraded multiple systems to systemd 249.3 and all had eth1 not started / configured

2021-08-17 Thread Colin Guthrie
eth0. I just want to know what changed and where? (Kernel or Systemd?). *Also another point is, I have set ConfigureWithoutCarrier=yes in network files and all are static IPs, so systemd-networkd should have configured the devices even if links are not up. But its not doing that anymore eithe

Re: [systemd-devel] systemd-udevd: Race condition when rule starts both a systemd-mount and an unit accessing that mount

2021-08-25 Thread Colin Guthrie
ork here? e.g. move the start of the start-standalone-mender-deployment@media-sdb1.service out of the udev rule and instead worry about the mount path, not the device name? So the udev rule just worries about mounting, then the path unit triggers the start of the mender deployment? Just a t

[systemd-devel] mkosi: rpm using host machine's users/groups

2021-09-01 Thread Colin Guthrie
/github.com/rpm-software-management/rpm/issues/882 While I don't think it helps, the user namespaces may be a useful work around (e.g. semi related to https://github.com/systemd/mkosi/issues/716) but I think the real fix is likely in glibc/rpm. Col -- Colin Guthrie gmane(at)colin.

Re: [systemd-devel] mkosi: rpm using host machine's users/groups

2021-09-01 Thread Colin Guthrie
Colin Guthrie wrote on 01/09/2021 14:30:   rpm -qa | xargs rpm --setugids >/dev/null 2>&1 Correction: --restore is actually needed over --setugids as although only the latter is strictly needed, it seems without the former the setuid bits on e.g. /usr/bin/su etc are also reset, so

Re: [systemd-devel] systemd | Requires statement with an instantiated service

2021-09-02 Thread Colin Guthrie
g any devices etc. Ultimately the problem here is "a" is notifying too early. Whether you solve this properly (i.e. fix "a") or with some duct tape and good will (i.e. a sleep 3 in "b") is up to you :-) Cheers Col -- Colin Guthrie gmane(at)colin.guthr.i

Re: [systemd-devel] why does bootctl default to /boot and not to /boot/efi?

2016-06-01 Thread Colin Guthrie
dified to detect which is used and copy the kernel to the appropriate directory (or copy it to both). I really like the ESP as /boot approach but it's hard to get people to buy into it :( Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogi

Re: [systemd-devel] Standardizing names for graphical session units

2016-07-06 Thread Colin Guthrie
the units are stopped too. I'm not sure how this would work regarding things like g-s-d which you want in multiple DEs.. perhaps the gnome.target would have to be split up into gnome-base.target and gnome.target to allow for this use case? Or perhaps g-s-d could just become bus a

Re: [systemd-devel] Standardizing names for graphical session units

2016-07-06 Thread Colin Guthrie
Jan Alexander Steffens wrote on 06/07/16 10:44: > On Wed, Jul 6, 2016 at 10:51 AM Colin Guthrie <mailto:gm...@colin.guthr.ie>> wrote: > > Martin Pitt wrote on 04/07/16 23:08: > >> > Why would you call it graphical-<$DE>.slice as opposed to >

Re: [systemd-devel] Reboot hangs at the very last step

2016-07-20 Thread Colin Guthrie
nt-raid2\\x2dbackup.mount > > at runtime. > >> Maybe it's a missing patch in the quite old version of systemd in SLE 12. >> > > I remember these problems were reported to (open)SUSE bugzilla and it > may have some workarounds. SLES syste

Re: [systemd-devel] Reboot hangs at the very last step

2016-07-20 Thread Colin Guthrie
Andrei Borzenkov wrote on 20/07/16 11:54: > On Wed, Jul 20, 2016 at 12:20 PM, Colin Guthrie wrote: > >> >> Is it enough to just add the "_netdev" option to the fstab mounts in >> question? > > The problem is triggered by manual mounts; here _netdev is

Re: [systemd-devel] assign variable to some service item

2016-10-05 Thread Colin Guthrie
with message Failed to parse > CPU affinity '$CPUAffinity' > Environment file contains CPUAffinity="0-2" > Does it possible to assign cpu affinity via env variable ? > Thanks! > > -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job:

Re: [systemd-devel] Spurious failures starting ConnMan with systemd

2016-11-15 Thread Colin Guthrie
tl list-dependencies connman.service" show _any_ dependencies >> on dbus.service/dbus.socket in this case. >> >> Why the automatically added After= dependency on basic.target has >> turned into a Requires= dependency with the v1.30 file, but the >> explicit

Re: [systemd-devel] Spurious failures starting ConnMan with systemd

2016-11-15 Thread Colin Guthrie
Hi, Daniel Wagner wrote on 15/11/16 15:02: > Hi Colin, > > On 11/15/2016 03:46 PM, Colin Guthrie wrote: >> Hope you're keeping well? > > Doing fine! How is live in the north? Grand thank you! :) >> So, by default, dbus should be socket activated. That means th

Re: [systemd-devel] VERY slow systemd startup

2016-12-20 Thread Colin Guthrie
kernel command line. Or perhaps you have some graphical thing (e.g. plymouth) but for some reason it's built without password entry support. Hope this helps Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open S

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-10 Thread Colin Guthrie
ics, the logind/PAM session for gdm/Debian-gdm is deliberate. gdm > spawns that via gdm-launch-environment, see > /etc/pam.d/gdm-launch-environment, which in turn includes > pam_systemd.so And I think this is needed and desirable for stuff like pulseaudio for audio feedback fo

Re: [systemd-devel] Github systemd issue 6237

2017-07-05 Thread Colin Guthrie
per the usual semantics of "- prefix suppresses errors", but "User=notauser" should fail IMO. Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia C

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Colin Guthrie
like I want? > > Many thanks! Write a companion man page and/or web page and reference it in Documentation= Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://w

Re: [systemd-devel] restricting resource of a process within a service

2017-10-18 Thread Colin Guthrie
endant on each other or, depending on your IPC mechanisms, you can use socket or bus activation. This then lets you have separate systemd units for each and apply whatever accounting and restrictions you may wish on each. HTHs Col -- Colin Guthrie colin(at)mageia.org http://colin

Re: [systemd-devel] 回复: 回复: 回复: 回复: 回复: 回复: 回复: [systemd-d e vel] sys temctl can't executestopactually,whenservice isstarted by other way

2017-11-01 Thread Colin Guthrie
I want to set soft limit to 100. From how I read it, the OP is asking for the syntax to set the soft limit in the .service file to whatever the current system-wide hard limit is. I'm afraid I'm not sure of the underlying concepts there to say whether this is supported (or indeed sensib

Re: [systemd-devel] How to run forking daemon with systemd in correct way, without errors?

2017-11-23 Thread Colin Guthrie
it's just that with nginx and httpd restarting is not something you would ideally want to do in production unless you can use full socket activation supported by systemd so as not to create a small window when connections from clients are refused. Col -- Colin Guthrie gmane(at)coli

Re: [systemd-devel] How to stop systemctl --user processes before backup runs then restart

2018-01-04 Thread Colin Guthrie
Barry Scott wrote on 31/12/17 17:41: > I think that for my backups to run for a user I will need to stop their > systemd user services. Out of curiosity, why do you think that the process needs to be stopped for the backups to run? Col -- Colin Guthrie gmane(at)colin.guthr.i

Re: [systemd-devel] Again, why this strange behavior implied by "auto" in fstab ?

2018-01-25 Thread Colin Guthrie
ably available before trying to mount them. As systemd is more reactive (i.e. hotplug friendly) what's to say a device plugged in 2s after boot is not a device plugging in at boot but which takes a while to appear on the bus and filter through to become a device node? I don't think it

Re: [systemd-devel] systemd-logind failing due to dbus error on org.freedesktop.systemd1

2018-02-01 Thread Colin Guthrie
by "owned" you mean that it >> does have a process associated to it, then I would say no. Here is a >> link for the output of `busctl` https://pastebin.com/VqT38tya >> >> >>> Does `kill -SIGUSR1 1` help you? >> Nope. The issue persists (and the output

Re: [systemd-devel] How to debug why a unit is started when?

2018-03-18 Thread Colin Guthrie
f you have no network filesystems (defined without noauto or nofail) and no LDAP/NIS users etc., then you may not need networkmanager-wait-online.service and if you disable this, things might go a lot faster. Be careful however, as some old network-listening services may still need this

Re: [systemd-devel] Idea: adding WantsFileBefore= and WantsFileAfter=?

2018-03-27 Thread Colin Guthrie
ryo (supercell/EGOIST), Hiroyuki Sawano >>> everyone else https://refi64.com/ > > > > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-dev

Re: [systemd-devel] systemd-networkd-wait-online should know if there is anything to wait for

2018-03-27 Thread Colin Guthrie
networkd is configured to not manage any devices *at all*, but perhaps there isn't much point in enabling the networkd-wait-online service at all in that case anyway? Struggling to understand the "why" question here, but could easily be missing something! :-) Col -- Colin Guthrie

Re: [systemd-devel] Encrypted partitions not decrypted at boot time when using key-file.

2018-03-27 Thread Colin Guthrie
with UUID= as a more robust way to name devices > # that works even if disks are added and removed. See fstab(5). > # > # > /dev/mapper/victor-odos / ext4errors=remount-ro 0 1 > /dev/mapper/victor-archos /boot ext2defaults0 2 > /dev/mapper/victor-oikia /hom

Re: [systemd-devel] CPU usage limit to systemd-nspawn container is not working

2018-07-19 Thread Colin Guthrie
ont.service.d/ if you want the overrides defined in the .conf file to only apply to that one machine. All the best and HTHs Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://ww

Re: [systemd-devel] systemd behavior during shutdown

2018-09-19 Thread Colin Guthrie
t; the service which is trying to use it. This should mean that the stop is not performed until after the unit that's using it. I'm not 100% sure how the socket activation stuff works in this scenario, but you may need to make sure the service unit of for the socket is actually started rathe

Re: [systemd-devel] Global nspawn container settings

2018-10-16 Thread Colin Guthrie
-nspawn on the command line, but it would get it for machines started from template units or via machinectl so may get you most of the way there. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia

Re: [systemd-devel] pam_systemd.so indirectly calling pam_acct_mgmt

2015-05-01 Thread Colin Guthrie
se to be run in a per-user context (i.e. not system services) and the lingering feature allows this in a clean way. Hope this gives you some use cases. I'm sure other people an give others. Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://w

Re: [systemd-devel] I am adding RegisterMachine to docker.

2015-05-29 Thread Colin Guthrie
tions. It prevented nspawn being used multiple times too (without specifying a new, unique, machine name explicitly) I can't recall where the problem lied but I suspect it was in an old kernel. Doubt this is your issue, but figured I'd mention it just in case. It was quite old (1.5y+ IIRC

Re: [systemd-devel] systemctl disable not working as expected

2015-06-02 Thread Colin Guthrie
les). Your distro might also put in other mechanisms. Of course your distro might be strange and actually ship a service file (or init script) but this is typically not the case. You have to investigate yourself tho' - perhaps seeing help via your distro. Col -- Colin Guthrie gmane(a

Re: [systemd-devel] [ANNOUNCE] Git development moved to github

2015-06-03 Thread Colin Guthrie
EAD (no new remote, nor branch...) > > $ git hub pull rebase 33 > > To rebase a pull request, update it on github and close it. > > It is also very easy to create new issues / pull requests, or add comments > directly from > the command line. This looks very useful i

Re: [systemd-devel] [ANNOUNCE] systemd v221

2015-06-22 Thread Colin Guthrie
to libabc?? > > Assuming you mean this: > https://git.kernel.org/cgit/linux/kernel/git/kay/libabc.git > > Libabac is an example stub that does absolutely nothing, and in the > future it will keep doing nothing. Excellent. I'd hate to see a libabc API breakage ;) Col -- C

Re: [systemd-devel] Getting boot progress and messages

2015-06-24 Thread Colin Guthrie
ly but I suspect it would be in good order. Daniel can probably confirm this or otherwise. HTHs Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hack

Re: [systemd-devel] howto handle one time shutdown programs

2015-06-26 Thread Colin Guthrie
it, you may want to look into the RefuseManualStop= directive (man systemd.unit) which will prevent your unit being stopped except indirectly via dependencies. Typically this would only be when the user reboots. You would then want to make sure that anything that really does want a stateful rel

Re: [systemd-devel] getent hosts

2015-06-30 Thread Colin Guthrie
Random guess: Perhaps machined is using fd storage facility of systemd and the reload borks it and it sees it as the machine going away? Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia C

Re: [systemd-devel] getent hosts

2015-06-30 Thread Colin Guthrie
Colin Guthrie wrote on 30/06/15 11:58: > Johannes Ernst wrote on 29/06/15 19:51: >>> On Jun 29, 2015, at 10:32, Johannes Ernst >> <mailto:johannes.er...@gmail.com>> wrote: >>> >>> I was hoping that >>> getent hosts >>> would work, jus

Re: [systemd-devel] Fwd: With my layer, Systemd not invoking my application at startup

2015-07-01 Thread Colin Guthrie
u. tmpfiles can create and change ownership of files and directories. It runs on every boot. Dropping in the appropriate configuration snippet for both might be sufficient for your needs and is likely cleaner than using a service. Hope this helps. Col -- Colin Guthrie colin(at)mageia.org h

Re: [systemd-devel] Fwd: With my layer, Systemd not invoking my application at startup

2015-07-02 Thread Colin Guthrie
ve to register with systemd after the post-install is run what > more I have to do ? > > Waiting for your inputs. > > Kindly let me know if you need any other information from end. > > Thanks > Vipin > > > > > > > > On Wed, Jul 1, 2015 a

Re: [systemd-devel] How do I find out why a service was started? (systemd-tmpfiles-setup failed in container)

2015-07-02 Thread Colin Guthrie
itself. > > https://github.com/systemd/systemd/blob/master/units/systemd-tmpfiles-setup.service.in > Michael meant which snippet file (/{usr/lib,etc}/tmpfiles.d/*) defines the /sys/devices/system/cpu/microcode/reload file and which package ships it, not the actual .servic

Re: [systemd-devel] [HEADSUP] systemd-222 around the corner

2015-07-08 Thread Colin Guthrie
(mentioned it in the "getent hosts " thread but no one confirmed - or denied - the problem there). I'll open an issue on github if someone else can confirm in a different setup. Cheers! Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalo

Re: [systemd-devel] How to debug this strange issue about "systemd"?

2015-07-17 Thread Colin Guthrie
e switch root step and examine >> environment. At this point root should already be mounted. > Thanks very much! > How to stop the booting process before switch root? See "man dracut" and the "Debugging dracut" section. Also see "man dracut.cmdline" and t

Re: [systemd-devel] How to debug this strange issue about "systemd"?

2015-07-17 Thread Colin Guthrie
Andrei Borzenkov wrote on 17/07/15 10:22: > On Fri, Jul 17, 2015 at 12:18 PM, Colin Guthrie wrote: >> sean wrote on 17/07/15 09:33: >>> On Fri, 2015-07-17 at 06:55 +0300, Andrei Borzenkov wrote: >>>> В Wed, 15 Jul 2015 23:03:02 +0800 >>>> sean пишет: &

Re: [systemd-devel] Confusing journal information - journal size

2015-07-20 Thread Colin Guthrie
o elsewhere to read about these things. In fact most admins > will probably have forgotten what they were going to look for when they > move their eyes of the log data. > > If it is considered important information, fine. But present it in a > far more understandable way for those wh

Re: [systemd-devel] Packaging systemd user-instance service files

2015-07-20 Thread Colin Guthrie
mation to any remote clients - this will be as true with any newer structure as it is now, so may as well code defensively for that now!), but for the common case, everything just works. > Can we disable multiple instances of the daemon in a systemd-native > way, even when the service is run pe

Re: [systemd-devel] Confusing journal information - journal size

2015-07-20 Thread Colin Guthrie
David Sommerseth wrote on 20/07/15 16:29: > On 20/07/15 15:31, Anne Mulhern wrote: >> - Original Message - >>> From: "Colin Guthrie" >>> To: systemd-devel@lists.freedesktop.org >>> Sent: Monday, July 20, 2015 5:38:38 AM >>> Sub

Re: [systemd-devel] How to properly write an "umbrella" unit

2015-07-21 Thread Colin Guthrie
till have to enable (or preset) the nifty.target however. This might or might not be desirable overall (in the example above, I can imagine someone still wanting to disable only the IPv6 component for example!). Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: T

Re: [systemd-devel] [ANNOUNCE] systemd-223 around the corner

2015-07-24 Thread Colin Guthrie
it may still be limited to some downstream cockup on my part!). Not had a chance to poke into code yet, but if no-one has time for this release, I'll try and do that for 224. systemctl reload-or-try-restart does not fail silently as per documentation https://github.com/systemd/systemd/issues/6

Re: [systemd-devel] starting processes for other users

2015-08-01 Thread Colin Guthrie
Ultimately, you'll always be able to do bad things here and have process for the wrong users in sessions if you use this kind of approach (same for setuid binaries). The trick is to avoid doing these things if this is not what you want! :) Col -- Colin Guthrie gmane(at)colin.guthr.ie h

  1   2   3   4   5   6   7   8   >