Re: [systemd-devel] Homepage systemd.conf 2015 unmaintained / abused?

2017-11-07 Thread Jan Alexander Steffens
On Tue, Nov 7, 2017 at 2:31 PM Shuang Liu wrote: > The following looks strange: > > Sponsors > > systemd.conf 2015 is only possible by the financial support from > sponsors. Our current sponsors include Madison Roofing and Eau Claire > Attorney. > I guess the systemd.events domain was unregister

Re: [systemd-devel] sd-bus connections & authentication timeout

2017-03-21 Thread Jan Alexander Steffens
On Mon, Mar 20, 2017 at 7:40 PM Stanislav Angelovič wrote: Hi Jan, thanks for quick response. Instead of sd_bus_process(), we could perhaps use sd_bus_flush() after creating the connection, as that one actually processes the requests until the connection changes state to 'running'. I tried this

Re: [systemd-devel] sd-bus connections & authentication timeout

2017-03-20 Thread Jan Alexander Steffens
On Mon, Mar 20, 2017, 17:14 Jan Alexander Steffens wrote: > > You could try calling sd_bus_process(bus, NULL) in a loop while it returns > >0 so that the initial hello is handled. > Actually, never mind, this is not reliable. IIRC the initial handshake has multiple steps so this

Re: [systemd-devel] sd-bus connections & authentication timeout

2017-03-20 Thread Jan Alexander Steffens
On Mon, Mar 20, 2017, 16:37 Stanislav Angelovič wrote: > Hi, > > We use sd-bus for DBus IPC in our own applications. Some applications of > ours cause the dbus daemon to issue "Connection has not authenticated soon > enough, closing it" message, leading to the > org.freedesktop.DBus.Error.Timeout

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

2016-07-06 Thread Jan Alexander Steffens
On Wed, Jul 6, 2016 at 2:21 PM Jóhann B. Guðmundsson wrote: > > It's questionable if such application should reside in upstream systemd > since arguably systemd should have never created the graphical.target to > begin with ( if it had not we probably would not be having this discussion > since d

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

2016-07-06 Thread Jan Alexander Steffens
On Wed, Jul 6, 2016 at 1:50 PM Martin Pitt wrote: > Martin Pitt [2016-07-06 13:47 +0200]: > > I have a gut feeling that this should be expressible with systemd > > dependencies -- i. e. "if gnome-session.service stops, then stop > > gnome-session.target". Naïvely this would be > > "PartOf=gnome-s

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

2016-07-06 Thread Jan Alexander Steffens
On Wed, Jul 6, 2016 at 10:51 AM Colin Guthrie wrote: > Martin Pitt wrote on 04/07/16 23:08: > >> > Why would you call it graphical-<$DE>.slice as opposed to simply > <$DE>.slice > >> > which is part of the <$DE>.target and graphical target is link to that > >> > <$DE>.target ( if shipped upstrea

Re: [systemd-devel] /usr/lib/systemd/*.wants vs. Wants in unit definition

2016-06-06 Thread Jan Alexander Steffens
On Mon, Jun 6, 2016 at 1:27 PM Martin Pitt wrote: > Andrei Borzenkov [2016-06-06 13:55 +0300]: > > What is advantage in having static *.wants etc directories in > > /usr/lib/systemd vs. Wants etc directives directly in unit definition? > > They complicate troubleshooting (you no more have complet

Re: [systemd-devel] DBus's PropertiesChanged signal is not triggered when an Unit stop successfully

2016-05-30 Thread Jan Alexander Steffens
, but I have no idea if it's > related or not... > > Cheers, > > Adrien BESNARD > > 2016-05-26 11:59 GMT+02:00 Jan Alexander Steffens > : > >> You need to listen to JobRemoved signals. All of them, before you start >> your job - trying to match on the speci

Re: [systemd-devel] DBus's PropertiesChanged signal is not triggered when an Unit stop successfully

2016-05-26 Thread Jan Alexander Steffens
You need to listen to JobRemoved signals. All of them, before you start your job - trying to match on the specific job you get back from StopUnit might not complete before the job is already removed. On Thu, May 26, 2016 at 8:20 AM Adrien Besnard wrote: > I managed to do what I wanted to do usin

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

2016-02-11 Thread Jan Alexander Steffens
On Feb 11, 2016 7:03 PM, "Reindl Harald" wrote: > > > > Am 11.02.2016 um 17:50 schrieb Lennart Poettering: >> >> * A new service setting RuntimeMaxSec= has been added that may be used >>to specify a maximum runtime for a service. If the timeout is hit, the >>servic

Re: [systemd-devel] systemd services via SSH (-H key)

2015-10-22 Thread Jan Alexander Steffens
On Thu, Oct 22, 2015 at 11:07 PM, Mikhail Kasimov wrote: > Hello! > > 1. systemd services have a special key (-H) to connect to remote host > via ssh. E.g. 'timedatectl -H user@host'. By default port 22 is used. > But in very often cases admins change the default ssh-port in > sshd-daemon settings

Re: [systemd-devel] Options for logging from service started before journald?

2015-10-18 Thread Jan Alexander Steffens
On Sun, Oct 18, 2015 at 5:05 PM, Andrei Borzenkov wrote: > What can be done to log from unit that needs to be started before journald? > Journal, syslog or kmsg all require journald connection and as far as I > understand will deadlock on waiting for journald to accept it. NULL is not > an option;

Re: [systemd-devel] systemd

2015-10-11 Thread Jan Alexander Steffens
On Mon, Oct 12, 2015 at 4:38 AM, yan...@iscas.ac.cn wrote: > > hello guys: > when I build systemd ,there is an error:***libmount support required but > libraries not found .but I have do this"sudo apt-get install libmount-dev > libmount1"in Ubuntu14.04 So what should I do ? Thank you! Ub

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-05 Thread Jan Alexander Steffens
On Mon, Oct 5, 2015 at 8:28 AM, Alessio Igor Bogani wrote: > So I'll install polkit. The only downside is that polkit drag > Javascript interpreter in which isn't a typical package for an > embedded system due it's footprint but I suspect that I should live > with it. :-) Yeah, that was a weird

Re: [systemd-devel] use-case for sparse tar archives

2015-08-18 Thread Jan Alexander Steffens
On Tue, Aug 18, 2015 at 6:29 PM, Lennart Poettering wrote: > Why would you not do this? GNU tar's documentation mentions the main drawback: However, be aware that `--sparse' option presents a serious drawback. Namely, in order to determine if the file is sparse `tar' has to read it before

Re: [systemd-devel] [systemd-commits] 2 commits - src/libsystemd-network src/udev

2015-04-11 Thread Jan Alexander Steffens
On Sun, Apr 12, 2015 at 1:49 AM, Shawn Landden wrote: > Given that we don't do any operations on it (besides memcmp which doesn't > matter) > it doesn't actually violate, but it does generate an annoying warning. What about making expected_chaddr a void pointer? Would that remove the warning? __

Re: [systemd-devel] Suspend from wireless keyboard not working

2015-02-13 Thread Jan Alexander Steffens
On Sat, Feb 14, 2015 at 5:34 AM, Gustavo De Nardin (spuk) wrote: > Excuse the ignorance, but why is it a problem if every keyboard would get > the 'power-switch' tag (or if it wouldn't be needed)? For example, would it > be a problem if a distro adds the power-switch tag to all keyboards by > defa

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Jan Alexander Steffens
On Oct 28, 2014 5:05 PM, "Lennart Poettering" wrote: > On Tue, 28.10.14 11:28, Dale R. Worley (wor...@alum.mit.edu) wrote: > > That is not entirely true. I'm a user (because systemd is in Fedora > > 19), and I've complained that if I mark an /etc/fstab entry as > > "nofail", some part of systemd

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-21 Thread Jan Alexander Steffens
On Tue, Oct 21, 2014 at 11:08 AM, Martin Steigerwald wrote: > Then systemd may use it as PID 1, but if someother wants to use it in own > project, can use it as well. I consider cgroups as part of the kernel API and > I highly dislike the battle on which of the available solutions will get > contr

Re: [systemd-devel] [PATCH 1/4] Add ENVIRONMENT to hostnamectl

2014-07-07 Thread Jan Alexander Steffens
Am 08.07.2014 02:55 schrieb "Kay Sievers" : > Shouldn't we possibly we find a word for "environment" which explains > itself a bit better? Environment we usually call the numerous > variables of a process or service. Just "TAG" maybe? It's unfortunate, but ENVIRONMENT is the most widespread term f

Re: [systemd-devel] [PATCH] fstab-generator: do not check btrfs and xfs

2014-06-29 Thread Jan Alexander Steffens
On Sun, Jun 29, 2014 at 6:08 PM, Andrey Borzenkov wrote: > This sounds far too specific for a generic tool. If I read this bug > report correctly, the primary complain was that systemd tries to > install fsck service even though fstab says skip fsck. This appears to > be the actual bug; I do not s

Re: [systemd-devel] Locking current session programmatically

2014-06-27 Thread Jan Alexander Steffens
Am 27.06.2014 15:45 schrieb "Ivan Shapovalov" : > > I want to lock my current session using a command-line tool (or a D-Bus call). > > The only apparent way to do this is `loginctl lock-session $XDG_SESSION_ID`. > However, this results in an "Access denied" reply, which is somewhat strange > (I exp

Re: [systemd-devel] [hybrid-sleep] hibernation delay

2014-06-20 Thread Jan Alexander Steffens
Am 20.06.2014 15:24 schrieb "Lennart Poettering" : > how do we figure out > after resume whether we resumed because of this timer (and hence we > should go to hibernation, immediately) or because of some user activity? I think there's a way to get at Linux or ACPI's information about which device

Re: [systemd-devel] [PATCH] tmpfiles: Fix journal file permissions broken by a606871

2014-06-09 Thread Jan Alexander Steffens
On Mon, Jun 9, 2014 at 8:30 PM, Greg KH wrote: > Why do you think they should not be? Executability is just nonsense, while world-readability goes against the systemd-journald manpage, which claims that, by default, only users in the systemd-journal system group can read journals not their own.

[systemd-devel] [PATCH] tmpfiles: Fix journal file permissions broken by a606871

2014-06-09 Thread Jan Alexander Steffens (heftig)
They shouldn't be executable nor world-readable. --- tmpfiles.d/systemd.conf | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tmpfiles.d/systemd.conf b/tmpfiles.d/systemd.conf index c5910f8..d6c4da3 100644 --- a/tmpfiles.d/systemd.conf +++ b/tmpfiles.d/systemd.conf @@

[systemd-devel] [PATCH] build-sys: do proper LTO with GCC without needing fat objects

2014-06-05 Thread Jan Alexander Steffens (heftig)
commit 235c6e6 added `-ffat-lto-objects` in order to work around GCC 4.9's new default of disabling such objects. However, this also means LTO doesn't optimize across static libraries — and never did so in the past, either. Use the GCC wrappers for the binutils tools `nm`, `ranlib` and `ar` in or

Re: [systemd-devel] Problems with systemd-coredump

2014-02-17 Thread Jan Alexander Steffens
On Mon, Feb 17, 2014 at 9:27 PM, Manuel Reimer wrote: > Hello, > > if a bigger application crashes with coredump, then systemd-coredump seems > to have a few problems with that. > > At first, there is the 767 MB limitation which just "drops" all bigger > coredumps. > > But even below this limit it

Re: [systemd-devel] user@.service doesn't stop on logout

2013-12-10 Thread Jan Alexander Steffens
On Tue, Dec 10, 2013 at 7:19 PM, Lennart Poettering wrote: > That service should be reference counted by the sessions of the users > logging in. I should hence go away if the users successfully log out > from their last session. > > Your screenshot shows the user as "closing". Usually that state i

Re: [systemd-devel] Is restart gracefull?

2013-11-29 Thread Jan Alexander Steffens
On Fri, Nov 29, 2013 at 12:52 PM, Cecil Westerhof wrote: >> Just to clarify, "stop" (and, by extension "restart") is also up to >> the implementer of the unit file. There just happens to be a default, >> unlike with "reload." See the service and exec man pages for details. >> Regardless, "restart"

Re: [systemd-devel] Really simple polkit authorisation GUI

2013-10-02 Thread Jan Alexander Steffens
On Wed, Oct 2, 2013 at 10:20 PM, Colin Guthrie wrote: > Hi, > > I've googled around a bit here, but figured asking the bright minds here > might be a good call. I know it's a bit OT, so feel free to ignore :) > > I'm trying to switch more of our stuff to polkit from usermode > consolehelper (I thi

Re: [systemd-devel] systemd shutdown vs ostree

2013-09-14 Thread Jan Alexander Steffens
On Sat, Sep 14, 2013 at 10:52 AM, Koen Kooi wrote: > Please keep in mind that pstore is x86 only. EFI isn't x86 only, but > exceedingly rare outside of that arch. What? Pstore itself isn't. It's a generic interface to persistent platform storage. There are backends using EFI variables, NVRAM (Po

Re: [systemd-devel] systemd shutdown vs ostree

2013-09-12 Thread Jan Alexander Steffens
On Thu, Sep 12, 2013 at 10:51 PM, Lennart Poettering wrote: > I think the really late shutdown logs should more liekly end up in some > EFI var and then flushed out on next boot or so... That sounds good. Maybe use the pstore system? A service could then read that data into the journal at boot, a

Re: [systemd-devel] Quick ? about ExecStartPre and Restart

2013-07-04 Thread Jan Alexander Steffens
On Thu, Jul 4, 2013 at 10:17 AM, Paul D. DeRocco wrote: >> You don't need to copy it to somewhere else. You can replace an >> executable without the running process being disturbed, by deleting >> the file and creating (or moving) a new one in its place. Most tools >> (like "cp") will do this when

Re: [systemd-devel] Quick ? about ExecStartPre and Restart

2013-07-03 Thread Jan Alexander Steffens
On Thu, Jul 4, 2013 at 2:04 AM, Paul D. DeRocco wrote: > 1) I want my service executable to be copied from flash to RAM disk, and > then executed from there, so that the original can be updated while the copy > is running. You don't need to copy it to somewhere else. You can replace an executable

Re: [systemd-devel] [PATCH] journald: DO recalculate the ACL mask, but only if it doesn't exist

2013-05-29 Thread Jan Alexander Steffens
On Wed, May 29, 2013 at 3:14 PM, Colin Walters wrote: > I fully realize you did not introduce the current naming scheme in > acl-util.c, but more stomping on the "acl_" namespace that currently > lives in libacl.so seems like a bad idea - they'd be fully within their > rights to introduce a symbol

[systemd-devel] [PATCH] journald: DO recalculate the ACL mask, but only if it doesn't exist

2013-05-28 Thread Jan Alexander Steffens (heftig)
From: "Jan Alexander Steffens (heftig)" Since 11ec7ce, journald isn't setting the ACLs properly anymore if the files had no ACLs to begin with: acl_set_fd fails with EINVAL. An ACL with ACL_USER or ACL_GROUP entries but no ACL_MASK entry is invalid, so make sure a mask exists b

Re: [systemd-devel] Automatic Reboot Protocol

2013-05-25 Thread Jan Alexander Steffens
On Sun, May 26, 2013 at 1:19 AM, wrote: > > How to reboot from a systemd timer? We have > > systemd timer calls > systemd unit calls > bash script calls > systemctl reboot > > The script runs fine each day, except for its last step, "systemctl > reboot." What's the right protocol? Is i

Re: [systemd-devel] login problems

2013-04-29 Thread Jan Alexander Steffens
On Tue, Apr 30, 2013 at 1:05 AM, Zbigniew Jędrzejewski-Szmek wrote: >> This is an Arch Linux system with Linux 3.8.8-1-ARCH and systemd 202-1. >> Any ideas? > Are you using selinux, runinng in enforcing mode? How soon after boot, > and how soon after selinux policy is loaded, does this happen? Th

Re: [systemd-devel] /var/log/journal/

2013-04-05 Thread Jan Alexander Steffens
On Fri, Apr 5, 2013 at 10:02 PM, Reindl Harald wrote: > great - does F17 and F18 understand the option too to prepare > any machine under my control and forget the issue? F18 does, but I don't think F17 does. > what's the exact difference between "none" and "volatile"? "volatile" stores in /run

[systemd-devel] [PATCH] Fix vacuum logic error

2013-03-20 Thread Jan Alexander Steffens (heftig)
From: "Jan Alexander Steffens (heftig)" The vacuum code used to stop vacuuming after one deletion, even when max_use was still exceeded. Also make usage a uint64_t, as the code already pretends it is one. Signed-off-by: Jan Alexander Steffens (heftig) --- src/journal/journal-va