Re: [systemd-devel] Errorneous detection of degraded array

2017-01-29 Thread Andrei Borzenkov
On Mon, Jan 30, 2017 at 9:36 AM, NeilBrown wrote: ... > > systemd[1]: Created slice system-mdadm\x2dlast\x2dresort.slice. > systemd[1]: Starting system-mdadm\x2dlast\x2dresort.slice. > systemd[1]: Starting Activate md array even though degraded... > systemd[1]:

Re: [systemd-devel] Errorneous detection of degraded array

2017-01-29 Thread Andrei Borzenkov
30.01.2017 04:53, NeilBrown пишет: > On Fri, Jan 27 2017, Andrei Borzenkov wrote: > >> 26.01.2017 21:02, Luke Pyzowski пишет: >>> Hello, >>> I have a large RAID6 device with 24 local drives on CentOS7.3. Randomly >>> (around 50% of the time) syste

Re: [systemd-devel] Errorneous detection of degraded array

2017-01-28 Thread Andrei Borzenkov
27.01.2017 22:44, Luke Pyzowski пишет: ... > Jan 27 11:33:14 lnxnfs01 kernel: md/raid:md0: raid level 6 active with 24 out > of 24 devices, algorithm 2 ... > Jan 27 11:33:14 lnxnfs01 kernel: md0: detected capacity change from 0 to > 45062020923392 > Jan 27 11:33:14 lnxnfs01 systemd[1]: Found

Re: [systemd-devel] Errorneous detection of degraded array

2017-01-26 Thread Andrei Borzenkov
26.01.2017 21:02, Luke Pyzowski пишет: > Hello, > I have a large RAID6 device with 24 local drives on CentOS7.3. Randomly > (around 50% of the time) systemd will unmount my RAID device thinking it is > degraded after the mdadm-last-resort@.timer expires, however the device is > working normally

Re: [systemd-devel] RequiresMountsFor and the noauto option.

2017-01-22 Thread Andrei Borzenkov
This was discussed just recently as regression in Leap 42.2 on opensuse mailing list ... 23.01.2017 03:13, NeilBrown пишет: > > hi, > according to "man systemd.unit" : > >RequiresMountsFor= >Takes a space-separated list of absolute paths. >Automatically adds

Re: [systemd-devel] How to disable Predictable Network Interface Names using a drop-in?

2017-01-20 Thread Andrei Borzenkov
20.01.2017 17:51, Patrick Schleizer пишет: > Hi, > > I've learned about the kernel parameter and symlink ways to disable > predictable network interface names. However, as a Debian derivative, it > would be much cleaner using a drop-in to disable it. > > Is there some drop-in directory

Re: [systemd-devel] Creating new targets to order shutdown

2017-01-17 Thread Andrei Borzenkov
17.01.2017 18:21, Ray Nichols пишет: > Hello, > > > > I'm interested in a particular scenario which has been mentioned on > mailing lists before: > >

Re: [systemd-devel] udev event to trigger xinput/xmodmap

2017-01-01 Thread Andrei Borzenkov
02.01.2017 09:37, Weiwu Zhang пишет: > > On Mon, 2 Jan 2017, Andrei Borzenkov wrote: > >> Buttons can be remapped in /etc/X11/xorg.conf.d snippet that has the >> same matching capabilities (assuming you run more or less recent Xorg). > > I didn't know it can ma

Re: [systemd-devel] udev event to trigger xinput/xmodmap

2017-01-01 Thread Andrei Borzenkov
02.01.2017 09:18, Weiwu Zhang пишет: ... > > The reconfiguration - like remapping mouse buttons with xinput, > remapping keyboard keys with xmodmap, has to happen in a much later > stage. Before endeavouring silly fixes like setting off a background > process with a timed event, is there a more

Re: [systemd-devel] Why udev rule triggered for USB mice but not bluetooth mice

2017-01-01 Thread Andrei Borzenkov
02.01.2017 09:09, Mantas Mikulėnas пишет: ... >>> Code: >>> $ udevadm info -a -p `udevadm info -q path /dev/input/mouse3` >>> >>> looking at device >>> '/devices/virtual/misc/uhid/0005:17EF:6060.0005/input/input26/mouse3': >>> KERNEL=="mouse3" >>> SUBSYSTEM=="input" >>> DRIVER==""

Re: [systemd-devel] Why udev rule triggered for USB mice but not bluetooth mice

2017-01-01 Thread Andrei Borzenkov
02.01.2017 07:14, Weiwu Zhang пишет: > This is a user post cross-posted from > https://ubuntuforums.org/showthread.php?t=2348023 > > Seems the question isn't mundane enough for Ubuntu forum - no one > followed; so if I can get some clues from here I will cross post back > the solution to Ubuntu

Re: [systemd-devel] Best way to limit per-user system-wide units

2016-12-13 Thread Andrei Borzenkov
On Tue, Dec 13, 2016 at 3:52 PM, Samuel Williams wrote: > Hmm, so my local units directory contains business_development.target > which contains > > Wants=business_development-resque-worker-high-priority.target > business_development-resque-worker.target > > But

Re: [systemd-devel] Best way to limit per-user system-wide units

2016-12-13 Thread Andrei Borzenkov
On Tue, Dec 13, 2016 at 3:23 PM, Samuel Williams wrote: > I'd like my http user to be able to install unit files and start/stop them. > > Starting and stopping them is fairly easy with a sudo rule.. > > But adding them is a bit trickier. I could also use sudo but

Re: [systemd-devel] after=local-fs not enforced

2016-11-25 Thread Andrei Borzenkov
25.11.2016 18:13, Benoit SCHMID пишет: > Hello, > > On 11/25/2016 04:47 AM, Andrei Borzenkov wrote: >> Yes, this is the command that tries to unmount filesystems on LVM2 >> devices, thus bypassing systemd normal dependencies. The idea of such >> service is very quest

Re: [systemd-devel] after=local-fs not enforced

2016-11-24 Thread Andrei Borzenkov
25.11.2016 00:50, Benoit SCHMID пишет: > Hello, > > > On 11/24/2016 08:14 PM, Andrei Borzenkov wrote: >> What is blkdeactivate? It does not belong to systemd. > > You are asking too much, for me, Andrei because it comes from RH repo :-) > Well, it appears it is par

Re: [systemd-devel] after=local-fs not enforced

2016-11-24 Thread Andrei Borzenkov
24.11.2016 18:20, Benoit SCHMID пишет: > Hello, > > We have defined the following sap_XXX.service. > It contains the following in [Unit]: > ### > After=local-fs.target network-online.target ora_lsnr_XXX.service > remote-fs.target > Wants=ora_lsnr_XXX.service > ### > > Stopping and Starting the

Re: [systemd-devel] Started process not attach to its related service.

2016-11-23 Thread Andrei Borzenkov
23.11.2016 11:08, Benoit SCHMID пишет: > Hello, > > On 11/22/2016 11:46 AM, Holger Kiehl wrote: >> But users do test things under their login environment and expect them >> to run in this environment. So for some applications this is a must. > I fully agree with you. > > I am a SAP admin. > >

Re: [systemd-devel] systemd-sysv-generator bug ?

2016-11-23 Thread Andrei Borzenkov
22.11.2016 12:34, Benoit SCHMID пишет: > Hello, > > On 11/22/2016 09:15 AM, Andrei Borzenkov wrote: >> Assuming that your command survives normal session exit - does adding >> "After=user.slice" to your service helps? This should ensure your >> service

Re: [systemd-devel] Script in /usr/lib/systemd/system-shutdown not executed on init 6

2016-11-23 Thread Andrei Borzenkov
On Wed, Nov 23, 2016 at 3:42 PM, Benoit SCHMID wrote: > Hello, > > On 11/23/2016 11:55 AM, Lennart Poettering wrote: >> The scripts dropped there are executed very late during the shutdown >> process at a time where all processes have already been killed and all >> mount

Re: [systemd-devel] Started process not attach to its related service.

2016-11-22 Thread Andrei Borzenkov
On Tue, Nov 22, 2016 at 11:39 AM, Benoit SCHMID wrote: ... > 2. This service starts /etc/rc.d/init.d/sap start. > % cat /etc/rc.d/init.d/sap > #!/bin/bash > ... > case "$1" in > start) > # Oracle listener and instance startup > echo -n "Starting Oracle

Re: [systemd-devel] systemd-sysv-generator bug ?

2016-11-22 Thread Andrei Borzenkov
On Tue, Nov 22, 2016 at 12:21 PM, Benoit SCHMID <benoit.sch...@unige.ch> wrote: > Hello, > > On 11/22/2016 09:15 AM, Andrei Borzenkov wrote: >> Mount units are also propagated to systemd user instance. So you >> probably can also run this unit in systemd user context and

Re: [systemd-devel] systemd-sysv-generator bug ?

2016-11-22 Thread Andrei Borzenkov
On Tue, Nov 22, 2016 at 10:38 AM, Cédric BRINER wrote: > Hi, > > We have been through a lot of tests, trying to make it reproductible > with some easy scripts. You'll see at the bottom of this email, some > links on the scripts used, what we have typed in our console, and

Re: [systemd-devel] Disabling Predictable Network Interface Names by masking 80-net-setup-link.rules

2016-11-13 Thread Andrei Borzenkov
14.11.2016 00:51, Sylvain Pasche пишет: > Hi, > > On the Predictable Network Interface Names wiki page [1], one of the option > for disabling predictable network interface names is to mask the > 80-net-setup-link.rules udev rule. > > This has a side effect of somewhat breaking systemd-network:

Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-09 Thread Andrei Borzenkov
On Wed, Nov 9, 2016 at 4:11 PM, zerons wrote: > Hi everyone. > > Everyday, I need to do something like `git pull` after system > bootup and `git push` before shutdown. I am using Ubuntu 16.04. > I have tried to put some script into /etc/rc0.d/, /etc/rc6.d/, > each time

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-11-06 Thread Andrei Borzenkov
06.11.2016 13:41, Reindl Harald пишет: > > the current behavior is correct but "machine stops booting and require > password" in fact is "new" on systemd driven machines > It may be new for this or that distribution. It is certainly not new in general. echo "fsck failed for

Re: [systemd-devel] rpcbind.socket failing

2016-11-01 Thread Andrei Borzenkov
01.11.2016 18:47, Lennart Poettering пишет: > On Tue, 01.11.16 11:11, Steve Dickson (ste...@redhat.com) wrote: > >> >> >> On 10/31/2016 03:40 PM, Michael Biebl wrote: >>> Why is it using /var/run (where /var could be on a separate partition) >>> and not /run for the socket files? >> >> Historical

Re: [systemd-devel] kexec -p option does not cause a reboot on panic

2016-10-30 Thread Andrei Borzenkov
29.10.2016 03:16, Dey, Megha пишет: > Hi, > > I was testing kexec on systemd (Ubuntu 16.04). Here are the steps I follow: > > > 1. Install a kexec aware kernel (all the configs needed for kexec are > enabled) > > 2. Give the following command after making sure we have set up crash

Re: [systemd-devel] Applications using mulitple fork() in SystemD

2016-10-24 Thread Andrei Borzenkov
24.10.2016 20:03, Raghavendra. H. R пишет: > Hi All, > > I'm a newbie and exploring Systemd init system and I have a doubt regarding > how multiple fork() from an application is handled in SystemD environment. > > I have application of process A, which forks process B and B in turn forks >

Re: [systemd-devel] systemd - how to run system service by user target

2016-10-22 Thread Andrei Borzenkov
20.10.2016 15:00, Lennart Poettering пишет: > On Thu, 20.10.16 05:23, Kamil Jońca (kjo...@o2.pl) wrote: > >> Lennart Poettering writes: >> >>> On Wed, 19.10.16 12:46, Kamil Jońca (kjo...@o2.pl) wrote: >>> Assume we have openvpn.service. This service

Re: [systemd-devel] BUG: Huge Problem: systemd does not mount all filesystems on Boot

2016-10-14 Thread Andrei Borzenkov
14.10.2016 12:11, Juergen Sauer пишет: > Moin, > > Systemd 231, Archlinux current > > The concept is /home is to be mounted from nfs server. Works. > For performance reasons (email thunderbird, kde/plasma 5.8.x i.e odr > gnome are unusable if home is pure nfs) the user sub dirs .local, > .cache,

Re: [systemd-devel] systemd-222 mount issues on CentOS 7

2016-10-05 Thread Andrei Borzenkov
On Wed, Oct 5, 2016 at 3:08 PM, Lokesh Mandvekar <l...@fedoraproject.org> wrote: > On Wed, Oct 05, 2016 at 09:38:18AM +0300, Andrei Borzenkov wrote: >> On Wed, Oct 5, 2016 at 8:24 AM, Lokesh Mandvekar <l...@fedoraproject.org> >> wrote: >> > On Tue, Oct

Re: [systemd-devel] Auto-start of a Service in systemd

2016-10-05 Thread Andrei Borzenkov
>Loaded: loaded (/lib/systemd/system/test.service; enabled) >>Active: inactive (dead) >> >> >> For WantedBy= which attribute should be given, whether it is >> "default.target" or the default target of the system ? >> Running systemctl get-def

Re: [systemd-devel] Auto-start of a Service in systemd

2016-10-05 Thread Andrei Borzenkov
On Wed, Oct 5, 2016 at 12:23 PM, Raghavendra. H. R wrote: > Hi All, > > I'm a newbie in Systemd init system and I'm trying to auto boot/start my > service in systemd. But my service gets only enabled and it never runs > automatically. > > I modifying my unit file to depend on

Re: [systemd-devel] systemd-222 mount issues on CentOS 7

2016-10-05 Thread Andrei Borzenkov
On Wed, Oct 5, 2016 at 8:24 AM, Lokesh Mandvekar wrote: > On Tue, Oct 04, 2016 at 10:28:25AM +0200, Michal Sekletar wrote: >> On Tue, Sep 27, 2016 at 5:05 PM, Lokesh Mandvekar >> wrote: >> > Now, I can mount these partitions with: >> > >> > # lvm

Re: [systemd-devel] Help with boot time debugging

2016-10-04 Thread Andrei Borzenkov
04.10.2016 23:55, Manuel Amador (Rudd-O) пишет: > Hello folks! > > I'm developing a Dracut module and I need to know how to go about > showing what processes run by systemd during boot are saying. This is > for https://github.com/Rudd-O/zfs-fedora-installer . > > For example, I have this one

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-26 Thread Andrei Borzenkov
27.09.2016 05:10, Kai Krakow пишет: > Am Mon, 26 Sep 2016 14:30:37 +0530 > schrieb "Raghavendra. H. R" : > >> Andrei, >> >> How to set SYSTEMD_UNIT_PATH in Systemd ? > > Maybe try "systemctl set-environment"? You may need to run "systemctl > daemon-reload" after this for the

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
26.09.2016 17:58, Xen пишет: > Andrei Borzenkov schreef op 26-09-2016 15:28: > >> What effect do you expect? If service Requires mount point and mount >> point is not available, service startup fails. That is correct and >> expected behavior. If service does not requ

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 4:20 PM, Xen wrote: ... >> >> because earlier systems (sysvinit) hat no concept like emergency mode >> as they where a lousy bunch of scripts where you ended in case of a >> crucial disk failing in a undefined state? >> >> because earlier systems had no

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-26 Thread Andrei Borzenkov
gt; Regards, > > Raghavendra. H. R > (Raghu) > > On Mon, Sep 26, 2016 at 1:59 PM, Andrei Borzenkov <arvidj...@gmail.com> > wrote: >> >> On Mon, Sep 26, 2016 at 10:59 AM, Raghavendra. H. R <raghuh...@gmail.com> >> wrote: >> > These are ins

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 12:27 PM, Oliver Neukum wrote: > On Sun, 2016-09-25 at 23:57 +0200, Reindl Harald wrote: >> >> Am 25.09.2016 um 23:52 schrieb Sergei Franco: >> > I am looking at correct way to disable the "feature" of emergency mode >> > when systemd encounters missing

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-26 Thread Andrei Borzenkov
with DefaultEnvinronment tag > DefaultEnvironment=SYSTEMD_UNIT_PATH=/BingoDast/units > > > Regards, > Raghu > > > -- > Regards, > > Raghavendra. H. R > (Raghu) > > On Mon, Sep 26, 2016 at 1:07 PM, Andrei Borzenkov <arvidj...@gmail.com> > wrote: &

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-26 Thread Andrei Borzenkov
R > (Raghu) > > On Thu, Sep 22, 2016 at 12:26 PM, Andrei Borzenkov <arvidj...@gmail.com> > wrote: >> >> On Thu, Sep 22, 2016 at 9:18 AM, Raghavendra. H. R <raghuh...@gmail.com> >> wrote: >> > Thank you for the suggestions. >> > But wit

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 8:11 AM, Mantas Mikulėnas wrote: > That said, I suspect the reason it's not done by default is that it also > needs *networking*, and every distro has its own network setup services, It also needs logind unless you prepare special PAM configuration for

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-22 Thread Andrei Borzenkov
nvironment variables is enough to execute or link the library. > > Probably this kind of facility is not available in Systemd init systems. > > -- > Regards, > > Raghavendra. H. R > (Raghu) > > On Wed, Sep 21, 2016 at 10:40 PM, Andrei Borzenkov <arvidj...@gmail.com

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-21 Thread Andrei Borzenkov
21.09.2016 14:26, Raghavendra. H. R пишет: > Hi, > > I'm newbie with systemd boot system and I need help in resolving one issue. > > I would like to create a service under a customized path Eg:/mnt and > systemd should be able to pick my unit file from this. > > I tried by setting

Re: [systemd-devel] "dev-xxx.device" is trying to start indefinitely long

2016-09-20 Thread Andrei Borzenkov
On Tue, Sep 20, 2016 at 1:42 PM, Martin Pitt wrote: > > Anton Gerasimov [2016-09-20 11:37 +0200]: >> Yes, just adding 'KERNEL=="hda" TAGS+="systemd"' to udev rules did the >> trick. Thank you! > > That means you are missing /lib/udev/rules.d/99-systemd.rules for some >

Re: [systemd-devel] "dev-xxx.device" is trying to start indefinitely long

2016-09-19 Thread Andrei Borzenkov
19.09.2016 20:24, Martin Pitt пишет: > > Does your problem happen at every boot, or only sometimes? In the > former case it might actually not be a race condition but a more > systematic error, such as missing some udev rules, or not > re-triggering all udev devices during boot, etc. >

Re: [systemd-devel] Halt then reboot

2016-09-17 Thread Andrei Borzenkov
17.09.2016 14:23, Dark Penguin пишет: >>> Now that systemd manages the shutdown procedure, I don't know if it's >>> possible to achieve the same behaviour (and thus make NUT work with >>> systemd). >> >> As already mentioned, it is ouside of scope of OS actually. How you did >> it before systemd?

Re: [systemd-devel] Halt then reboot

2016-09-17 Thread Andrei Borzenkov
16.09.2016 20:20, Dark Penguin пишет: > Greetings! > > Short version: is it possible with systemd to have the machine halt, > wait for a few minutes and then reboot? > When system halts OS kernel is stopped and control is returned to firmware. So the only thing you can do is to program firmware

Re: [systemd-devel] unknown problem with systemd

2016-08-13 Thread Andrei Borzenkov
14.08.2016 04:58, Michał Zegan пишет: > Hello. I have installed systemd version 231 from arch repos. actually it > is systemd-selinux from aur. now, the problem: > the system boots. but some services fail to start, notably > systemd-journald and systemd-networkd, not sure if others fail too. >

Re: [systemd-devel] does service block when systemctl stop another service

2016-08-05 Thread Andrei Borzenkov
On Fri, Aug 5, 2016 at 2:46 PM, Xin Long <lucien@gmail.com> wrote: > Hi, Andrei: > On Fri, Aug 5, 2016 at 7:13 PM, Andrei Borzenkov <arvidj...@gmail.com> wrote: >> On Fri, Aug 5, 2016 at 2:01 PM, Xin Long <lucien@gmail.com> wrote: >>> When system sh

Re: [systemd-devel] does service block when systemctl stop another service

2016-08-05 Thread Andrei Borzenkov
On Fri, Aug 5, 2016 at 2:01 PM, Xin Long wrote: > When system shutdown, service [a] try to kill service [b] with 'systemctl > stop', > but we define the dependence that [b] must die after [a]. > > Will service [a] block there when system shudown ? Default execution is

Re: [systemd-devel] Reacting to non-systemd mounts

2016-08-05 Thread Andrei Borzenkov
Отправлено с iPhone > 4 авг. 2016 г., в 23:00, Matteo Panella > написал(а): > > Hi, > >> On 04/08/2016 16:43, Mantas Mikulėnas wrote: >> Then add an After= instead. Unit ordering is already specified >> separately from dependencies. > > That does not work,

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Andrei Borzenkov
On Mon, Aug 1, 2016 at 2:43 PM, Michael Chapman <m...@very.puzzling.org> wrote: > On Mon, 1 Aug 2016, Andrei Borzenkov wrote: >> >> On Mon, Aug 1, 2016 at 2:23 PM, Michael Chapman <m...@very.puzzling.org> >> wrote: >>> >>> On Mon, 1 Aug 2016, And

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Andrei Borzenkov
On Mon, Aug 1, 2016 at 2:23 PM, Michael Chapman <m...@very.puzzling.org> wrote: > On Mon, 1 Aug 2016, Andrei Borzenkov wrote: > [...] >>> >>> So here goes what I've done: >>> >>> 1. Create a service and put it in the network-online.target: &

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Andrei Borzenkov
On Mon, Aug 1, 2016 at 12:27 PM, Svetoslav Iliev wrote: > Hi all, > > I've been recently searching through internet for a possible solution for > this but so far without success and I'm still not sure if it is even > possible. Basically what I'm trying to do: > > During system

Re: [systemd-devel] new job systemd-cryptsetup@arkluks.service/stop - Why?

2016-07-25 Thread Andrei Borzenkov
On Tue, Jul 26, 2016 at 7:57 AM, Dave T wrote: > Is systemd expected to stop / unmount an encrypted device when another > device containing the keyfile used to mount it (e.g., a removable USB drive) > is removed? > > when I umount and then remove the USB disk, I see the

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-25 Thread Andrei Borzenkov
25.07.2016 20:48, Lennart Poettering пишет: > "su" opens user sessions, it does substantially more than just change > UIDs. Consider using "runuser" at least. > > The fact that a user session is created means that systemd will track > the code invoked like that independently of the service unit,

Re: [systemd-devel] systemd[1]: Stopped (with error) /dev/mapper/wxyz.

2016-07-24 Thread Andrei Borzenkov
25.07.2016 06:11, Dave T пишет: > I have a fileserver with several HDDs (btrfs and dm-crypt for all except > one which is lvm2 and dm-crypt). > > Within the last week when I umount a USB drive, all my other mounts > immediately get unmounted too. I lose /home and almost everything else > except

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

2016-07-20 Thread Andrei Borzenkov
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 irrelevant. ___ systemd-devel

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

2016-07-19 Thread Andrei Borzenkov
19.07.2016 13:21, Frank Steiner пишет: > Hi Andrei, > > thanks for your help! > > Andrei Borzenkov wrote > >> Well, that rather enforces this; when network filesystem is part of >> system startup it gets extra dependency on network and is unmounted >> before

Re: [systemd-devel] Is %i supported in Condition?

2016-07-19 Thread Andrei Borzenkov
On Tue, Jul 19, 2016 at 1:06 PM, Lennart Poettering wrote: > On Tue, 19.07.16 00:32, Michael Biebl (mbi...@gmail.com) wrote: > >> Hi, >> >> the systemd.unit man page is not quite clear on this, i.e. which >> settings support which specifiers. >> But maybe I just missed it. >

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-19 Thread Andrei Borzenkov
On Mon, Jul 18, 2016 at 4:30 PM, Holger Kiehl wrote: > > I am beginning to wonder, even if I write proper unit files (using templates), > the user is allowed to start and stop his AFD, either via command line or GUI. > If he now does it with the provided tools, the process

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

2016-07-18 Thread Andrei Borzenkov
18.07.2016 17:35, Frank Steiner пишет: > Hi, > > on some of our servers (all of those are NFS-servers with iscsi devices...) > rebooting sometimes hangs after > > [ OK ] Reached target Shutdown. > > The next line, the kernel mesage about resetting the system, never > shows up. Is there a way

Re: [systemd-devel] mount units and automatic (un)mounts

2016-07-15 Thread Andrei Borzenkov
15.07.2016 19:50, Alad Wenter пишет: ... >> >>> "systemctl reset-failed" is issued (note that appending the .mount unit >>> doesn't work in this case, giving a "Unit mnt-transcend\x2dsdhc.mount is >>> not loaded" error). >>> >> So how exactly do you call it? > % sudo systemctl reset-failed

Re: [systemd-devel] mount units and automatic (un)mounts

2016-07-15 Thread Andrei Borzenkov
15.07.2016 18:16, Alad Wenter пишет: > Hi, > > When a device is mounted, a matching mount unit is created per > systemd.mount(5): > > Mount points created at runtime (independently of unit files or >/etc/fstab) will be monitored by systemd and appear like any other >mount unit in

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-15 Thread Andrei Borzenkov
15.07.2016 13:28, Holger Kiehl пишет: > I tried to avoid Type=forking and PIDFile= because I then have to maintain > two different init versions, systemd and System-V-Init. I think there will > always be other Unix systems around without systemd and I do not want to > loose those users. > > Would

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-14 Thread Andrei Borzenkov
14.07.2016 15:34, Holger Kiehl пишет: > Hello, > > I am new to systemd and the maintainer of the file distribution software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > to systemd. The problem I am unable to solve is that doing a reboot, > poweroff or halt, all

Re: [systemd-devel] Question about OnUnitInactiveSec= directive

2016-07-08 Thread Andrei Borzenkov
09.07.2016 01:37, Mikhail Kasimov пишет: > Hello! > > Have a .timer service like: > > == > > [Unit] > Description=Runs VBA32 Update Hourly > Requires=timers.target > > [Timer] > OnBootSec=2min > OnUnitInactiveSec=1h > > [Install] > WantedBy=timers.target > > == > > to run

Re: [systemd-devel] Depending on services from a service unit template

2016-07-08 Thread Andrei Borzenkov
08.07.2016 22:01, Lennart Poettering пишет: > On Fri, 01.07.16 06:37, Andrei Borzenkov (arvidj...@gmail.com) wrote: > >> In principle, I do not see why we cannot have WantedBy and RequiredBy as >> first class directives under [Unit] to spare all these hoops. > >

Re: [systemd-devel] Adding a Timer section to .service files

2016-07-08 Thread Andrei Borzenkov
08.07.2016 21:40, Michał Zegan пишет: > Well, I also came with another idea. of course if you do not want to > have two different ways to do one thing it is a stopper, but I will tell > about it for completeness as it may or may not be easier to implement. > Instead of creating a timer unit on

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

2016-07-07 Thread Andrei Borzenkov
On Thu, Jul 7, 2016 at 11:27 AM, Martin Pitt wrote: > Zbigniew Jędrzejewski-Szmek [2016-07-04 22:20 +]: >> I think we should instead enhance target units to provide missing >> functionality. The most important thing would be to have something >> like PartOf, but more

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

2016-07-06 Thread Andrei Borzenkov
On Wed, Jul 6, 2016 at 2:25 PM, Martin Pitt wrote: >$ cat .config/systemd/user/gnome-session.target >[Unit] >Description=User systemd services for GNOME graphical session >Requires=graphical.target >PartOf=graphical.target > Is not this redundant?

Re: [systemd-devel] How to set a limit for mounting roofs?

2016-07-06 Thread Andrei Borzenkov
On Wed, Jul 6, 2016 at 7:26 AM, Lennart Poettering wrote: > On Tue, 05.07.16 14:00, Chris Murphy (li...@colorremedies.com) wrote: > >> On Tue, Jul 5, 2016 at 12:45 PM, Chris Murphy >> wrote: >> > OK it must be this. >> > >> > :/# cat

Re: [systemd-devel] How to set a limit for mounting roofs?

2016-07-04 Thread Andrei Borzenkov
04.07.2016 21:32, Chris Murphy пишет: > I have a system where I get an indefinite > > "A start job is running for dev-vda2.device (xmin ys / no limit)" > > Is there a boot parameter to use to change the no limit to have a > limit? rd.timeout does nothing. It should. Use rd.break and examine

Re: [systemd-devel] Depending on services from a service unit template

2016-06-30 Thread Andrei Borzenkov
01.07.2016 00:50, Paul Menzel пишет: > Dear Michael, dear Andrei, > > > Thank you for replying. > > > Am Montag, den 27.06.2016, 15:37 +0200 schrieb Michael Biebl: >> 2016-06-27 13:49 GMT+02:00 Andrei Borzenkov <arvidj...@gmail.com>: >>> On Mon,

Re: [systemd-devel] advice for zfs-mount-generator

2016-06-28 Thread Andrei Borzenkov
28.06.2016 06:49, Jörg Thalheim пишет: > Hi, > > when using zfs in combination with systemd, users run into the following > problem: > > - zfs manages mountpoints on its own and systemd is not aware of those. systemd is aware of all mount points that are listed in /proc/self/mountinfo. Do zfs

Re: [systemd-devel] Depending on services from a service unit template

2016-06-27 Thread Andrei Borzenkov
On Mon, Jun 27, 2016 at 9:25 AM, Paul Menzel wrote: > Dear systemd folks, > > > having a template for a service unit like `example@.service`, and > starting several services from it, is there a way, to let another > service unit require all services started from

Re: [systemd-devel] systemd-cryptsetup: Failed to deactivate: Device or resource busy

2016-06-26 Thread Andrei Borzenkov
26.06.2016 11:29, Michael Biebl пишет: > 2016-06-26 7:21 GMT+02:00 Andrei Borzenkov <arvidj...@gmail.com>: >> You obviously cannot deactivate crypto container that has your root. The >> only fix here is to exempt it from stopping on shutdown or return to >> initramfs t

Re: [systemd-devel] systemd-cryptsetup: Failed to deactivate: Device or resource busy

2016-06-25 Thread Andrei Borzenkov
26.06.2016 05:00, Michael Biebl пишет: > Hi, > > I'm using a luks encrypted lvm setup. One volume group which is > unlocked in the intramfs (initramfs-tools), and logical volumes for /, > /home and swap. > > > On shutdown I get > Jun 26 03:35:30 pluto systemd[1]: Stopped target Local File

Re: [systemd-devel] does "Before=network.target" really work

2016-06-24 Thread Andrei Borzenkov
On Fri, Jun 24, 2016 at 1:41 PM, Xin Long <lucien@gmail.com> wrote: > On Fri, Jun 24, 2016 at 6:23 PM, Andrei Borzenkov <arvidj...@gmail.com> wrote: >> On Fri, Jun 24, 2016 at 1:11 PM, Xin Long <lucien@gmail.com> wrote: >>> Hi, >>> >>>

Re: [systemd-devel] does "Before=network.target" really work

2016-06-24 Thread Andrei Borzenkov
On Fri, Jun 24, 2016 at 1:11 PM, Xin Long wrote: > Hi, > > I have a service, and want it to be stopped only after network is > stopped when system shutdown. > > I checked "man systemd.special ", network is a special internal > service for systemd, , and I found

Re: [systemd-devel] multi-user.target -> rescue.target and back to multi-user issues

2016-06-22 Thread Andrei Borzenkov
On Wed, Jun 22, 2016 at 10:38 AM, Michal Soltys <sol...@ziu.info> wrote: > On 2016-06-22 05:39, Andrei Borzenkov wrote: >> >> 21.06.2016 23:23, Michal Soltys пишет: >> >> TBH, switch between run-time levels never really worked in the past, >> before syst

Re: [systemd-devel] multi-user.target -> rescue.target and back to multi-user issues

2016-06-21 Thread Andrei Borzenkov
21.06.2016 23:23, Michal Soltys пишет: > Hi, > > This was tested with recent stock arch distro. I'm not sure if it's > intended to be able to isolare rescue.target from multi-user, but I > noticed two issues: > TBH, switch between run-time levels never really worked in the past, before systemd,

Re: [systemd-devel] environment variable questions

2016-06-16 Thread Andrei Borzenkov
17.06.2016 06:01, Brian Kroth пишет: > > It's somewhat unclear from the man pages as to whether or not $VAR > expansion is done outside of the Exec* directives, and I couldn't find a > definitive answer online, but based on the above, I'm guessing it's not, > correct? > Yes. Environment

Re: [systemd-devel] a service depending on a sound card

2016-06-15 Thread Andrei Borzenkov
On Wed, Jun 15, 2016 at 4:12 PM, wrote: > Hello. I want to create a service that starts after a specific sound card is > active. I have 2 sound cards, you can see them in the output below. The > service file contains > {{{ > [Unit] > After=sound.target >

Re: [systemd-devel] systemctl list failed daemons in computer-parsable format?

2016-06-11 Thread Andrei Borzenkov
11.06.2016 17:16, Patrick Schleizer пишет: > Hi, > > does systemctl or some other tool have a method to create > computer-parsable format for failed systemd daemons? > systemctl --no-legend --state=failed should be easy to parse. ___ systemd-devel

Re: [systemd-devel] Using btrfs subvolumes with systemd

2016-06-10 Thread Andrei Borzenkov
10.06.2016 11:01, Florent Peterschmitt пишет: > 10 juin 2016 08:06 "Andrei Borzenkov" <arvidj...@gmail.com> a écrit: >> 09.06.2016 23:30, Florent Peterschmitt пишет: >> >>> The log with systemd.log_level=debug at boot is located here: >>> http://dat

Re: [systemd-devel] Using btrfs subvolumes with systemd

2016-06-10 Thread Andrei Borzenkov
09.06.2016 23:30, Florent Peterschmitt пишет: > > The log with systemd.log_level=debug at boot is located here: > http://data.peterschmitt.fr/systemd.log > Unfortunately this log while being verbose does not add any useful information. > Here is the output from udevadm about /dev/mapper/root:

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Andrei Borzenkov
On Thu, Jun 9, 2016 at 1:00 PM, Jóhann B. Guðmundsson wrote: > On 06/09/2016 09:02 AM, Ross Lagerwall wrote: > >> On Thu, Jun 9, 2016 at 9:55 AM, Bao Nguyen wrote: >> With a new enough systemd, you should be able to add a snippet to extend >> the initscript

Re: [systemd-devel] execute OneShot user unit upon resume from suspend?

2016-06-07 Thread Andrei Borzenkov
On Tue, Jun 7, 2016 at 1:14 PM, Lennart Poettering wrote: > On Sun, 05.06.16 20:07, Anders Papitto (anderspapi...@gmail.com) wrote: > >> Hello, >> >> what is the best way to cause a user unit to trigger upon resuming from >> suspend? > > You could write a service that is

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

2016-06-06 Thread Andrei Borzenkov
On Mon, Jun 6, 2016 at 2:26 PM, Martin Pitt <martin.p...@ubuntu.com> 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

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

2016-06-06 Thread Andrei Borzenkov
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 complete definition by looking just at unit source), they complicate building (extra steps to install them); what

Re: [systemd-devel] Scheduling emptyings of specific directories

2016-06-03 Thread Andrei Borzenkov
03.06.2016 16:06, One Infinite Loop пишет: > It would be great if I could empty directories (creating a .conf file > in /etc/tmpfiles.d) but not at boot time, but before shutting > down/rebooting the pc. I am using systemd 229. Thanks in advance. > > Just create a oneshot, RemainAfterExit

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

2016-06-02 Thread Andrei Borzenkov
On Thu, Jun 2, 2016 at 1:34 PM, Lennart Poettering wrote: > > sd-boot certainly requires none of that. > 640K is more memory than anyone will ever need. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

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

2016-06-01 Thread Andrei Borzenkov
02.06.2016 04:53, Chris Murphy пишет: > On Wed, Jun 1, 2016 at 2:46 AM, Colin Guthrie wrote: >> Lennart Poettering wrote on 30/05/16 17:47: >>> hence an acceptable alternatively might be to >>> introduce /efi and mount the esp there, and simply not have /boot on >>> legacy

Re: [systemd-devel] shutdown delayed by failure to start a service

2016-05-29 Thread Andrei Borzenkov
29.05.2016 20:28, Felix Miata пишет: > Lennart Poettering composed on 2016-05-29 18:40 (UTC+0200): > >> Felix Miata wrote: > >>> The message I see is equivalent in form as during boot, e.g. when a >>> filesystem not noauto in fstab is to be mounted but cannot be found, >>> so a >>> delay of

Re: [systemd-devel] when/where was support for assigning "ethX" names removed?

2016-05-29 Thread Andrei Borzenkov
29.05.2016 19:55, Michael Biebl пишет: > 2016-05-29 18:28 GMT+02:00 Lennart Poettering : >> On Sat, 28.05.16 21:38, Martin Pitt (martin.p...@ubuntu.com) wrote: >> >>> Chris Friesen [2016-05-27 9:14 -0600]: The reason why I'm poking at this is that the old scheme

Re: [systemd-devel] check to see if service is still alive

2016-05-26 Thread Andrei Borzenkov
On Thu, May 26, 2016 at 3:39 PM, Thomas Güttler <guettl...@thomas-guettler.de> wrote: > Am 26.05.2016 um 14:35 schrieb Andrei Borzenkov: >> >> On Thu, May 26, 2016 at 3:18 PM, Thomas Güttler >> <guettl...@thomas-guettler.de> wrote: >>> >>> I wa

Re: [systemd-devel] check to see if service is still alive

2016-05-26 Thread Andrei Borzenkov
On Thu, May 26, 2016 at 3:18 PM, Thomas Güttler wrote: > I want to know if the service is alive, Define "service is alive". ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

<    1   2   3   4   5   6   7   8   9   >