Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Mantas Mikulėnas
On Sat, Sep 8, 2018 at 8:56 PM Michael Hirmke wrote: > Hi *, > > [...] > >> - The partition has to be mounted on boot. > >> - It has to be unmounted before the nightly copy job, so that an fsck > >> can be performed. > >> - After that it has to be mounted read only, so that during the copy >

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Martin Wilck
On Sat, 2018-09-08 at 19:55 +0200, Michael Hirmke wrote: > Hi *, > > [...] > > > - The partition has to be mounted on boot. > > > - It has to be unmounted before the nightly copy job, so that an > > > fsck > > > can be performed. > > > - After that it has to be mounted read only, so that during

[systemd-devel] DBUS API to restart unit by sending sigkill/sighup

2018-09-10 Thread prashantkumar dhotre
Hi, Is there is dbus API for systemd to restart unit by sending sigkill /sighup ? https://www.freedesktop.org/wiki/Software/systemd/dbus/ RestartUnit(in s name, in s mode, out o job); My requirement is to have a way to restart unit by sending sigkill or sighup (user can specify ) also along with

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Michael Hirmke
Hi, [...] >>> Isn't that commonly done using LVM? If it were on a logical volume, >>> you >>> could fsfreeze /var/backup (to suspend writes during snapshotting), >>> make a >>> LVM snapshot, thaw, mount the read-only snapshot elsewhere and >>> rsync off it. >> >> I never used LVM and this system

Re: [systemd-devel] DBUS API to restart unit by sending sigkill/sighup

2018-09-10 Thread Mantas Mikulėnas
On Mon, Sep 10, 2018 at 9:44 AM prashantkumar dhotre < prashantkumardho...@gmail.com> wrote: > Hi, > Is there is dbus API for systemd to restart unit by sending sigkill > /sighup ? > https://www.freedesktop.org/wiki/Software/systemd/dbus/ > RestartUnit(in s name, in s mode, out o job); > My

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Martin Wilck
On Mon, 2018-09-10 at 09:55 +0200, Michael Hirmke wrote: > > > > > > > > (I would just use `umount /var/backup`, however.) > > > > > > Can't do that as long as the mount unit is under systemd control. > > > A few seconds later systemd remounts it on its own. > > > > > "noauto" mount option? >

[systemd-devel] [ANNOUNCE] systemd hackfest/talkfest/bof/miniconf 2018 @ All Systems Go!

2018-09-10 Thread Lennart Poettering
Heya! Here's a quick heads-up for those attending All Systems Go! 2018 in Berlin (everybody's favourite low-level Linux usperspace conference): we are going to have a systemd hackfest/talkfest/bof/miniconf on Sunday after the main conference (i.e. the 30th of Sep) at the conference venue's

Re: [systemd-devel] Intermittent failure of user@.service

2018-09-10 Thread Lennart Poettering
On Fr, 10.08.18 20:58, Johannes Ernst (johannes.er...@gmail.com) wrote: > This is Arch. I boot the system, and ssh in as user “shepherd”. Something > goes wrong, but from the log (below) I cannot tell what it is. I do get a > shell and everything seems to work fine. If I terminate ssh and

Re: [systemd-devel] How to add a unit path to systemd?

2018-09-10 Thread Lennart Poettering
On Fr, 10.08.18 10:31, Filipe Brandenburger (filbran...@google.com) wrote: > Hi Lennart, > > On Fri, Aug 10, 2018 at 3:30 AM Lennart Poettering > wrote: > > On Do, 09.08.18 10:20, Daniel Wang (wonder...@google.com) wrote: > > > I want to append to systemd's unit search path a directory on my

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

2018-09-10 Thread Lennart Poettering
On Di, 21.08.18 10:08, deepan muthusamy (deepan.m2...@gmail.com) wrote: > Hi, > Thank you for the reply. Since I can't use session service to access system > service, how can I start a application as service having session dbus as > system service? The system service manager instance (i.e. PID

Re: [systemd-devel] Potential bug where Ctrl+Alt+Del 7 times doesn't shut down the system?

2018-09-10 Thread Lennart Poettering
On Mi, 05.09.18 10:51, Ryan Gonzalez (rym...@gmail.com) wrote: > I recently filed this bug with flatpak-xdg-utils: > https://github.com/flatpak/flatpak-xdg-utils/issues/12 > > The TL;DR is that flatpak-spawn processes will cause systemd to wait for > the "stop job to complete" on shutdown. > >

Re: [systemd-devel] Does a generator need to take care of overrides in /etc?

2018-09-10 Thread Lennart Poettering
On Do, 16.08.18 00:48, Bernhard Schmidt (be...@birkenwald.de) wrote: > Hi, > > I've been sent here by the great systemd maintainers in Debian for > clarification. The situation was observed on systemd v239 on Debian > unstable. > > On src:openvpn we have recently gotten a bug report about local

Re: [systemd-devel] systemd oneshot service stop on shutdown problem

2018-09-10 Thread Lennart Poettering
On Mo, 20.08.18 18:00, Radoslaw Garbacz (radoslaw.garb...@xtremedatainc.com) wrote: > Hi, > > Could you please advise me with regard to systemd configuration for service > type=oneshot. > It does not execute stop on shutdown/reboot, but works as intended when > called manually. > > Online

Re: [systemd-devel] How to add a unit path to systemd?

2018-09-10 Thread Lennart Poettering
On Fr, 10.08.18 10:10, Daniel Wang (wonder...@google.com) wrote: > > Alternatively, you actually can issue daemon reload during the > boot process > > Suppose I use a systemd service (say foo.service) to do this, is it a > supported/recommended practice to do a daemon reload as part of a unit's

Re: [systemd-devel] Return codes of systemctl (status)

2018-09-10 Thread Lennart Poettering
On Do, 16.08.18 12:18, Dave Reisner (d...@falconindy.com) wrote: > On Thu, Aug 16, 2018 at 01:27:12PM +0200, Cecil Westerhof wrote: > > The man page of systemctl says: > >     On success, 0 is returned, a non-zero failure code otherwise. > > > > When I do a systemctl status on a service that is

Re: [systemd-devel] DBUS API to restart unit by sending sigkill/sighup

2018-09-10 Thread Lennart Poettering
On Mo, 10.09.18 12:12, prashantkumar dhotre (prashantkumardho...@gmail.com) wrote: > Hi, > Is there is dbus API for systemd to restart unit by sending sigkill /sighup > ? > https://www.freedesktop.org/wiki/Software/systemd/dbus/ > RestartUnit(in s name, in s mode, out o job); RestartUnit()

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Lennart Poettering
On Sa, 08.09.18 19:10, Michael Hirmke (m...@mike.franken.de) wrote: > Hi *, > > for my backups I use disks in a way similar to tapes. > I have a fixed backup disk with one single partition, which is used for > backing up the machine hosting this disk and a few other machines from > remote. At

Re: [systemd-devel] blocking service on shutdown

2018-09-10 Thread Lennart Poettering
On So, 02.09.18 15:37, Ralf Sieger (ralf.sie...@gmx.net) wrote: >Hi, > >I want my system to pause on shutdown to wait till my backup has finished >if it is running. >For this I've created this small service: > >[Unit] >Description=borg shutdown wait >

Re: [systemd-devel] Touch enabled application not working

2018-09-10 Thread Lennart Poettering
On Mi, 29.08.18 18:24, deepan muthusamy (deepan.m2...@gmail.com) wrote: > Hi, > I have a hmi application(without touch feature enabled) created using cgi. > If I start that application under basic.target, it's running successfully. > > But if I start that application( with touch enabled) under

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Michael Hirmke
Hi, >On Sa, 08.09.18 19:10, Michael Hirmke (m...@mike.franken.de) wrote: [...] >> For the backup "master" I have the following requirements: >> >> - The partition has to be mounted on boot. >> - It has to be unmounted before the nightly copy job, so that an fsck >> can be performed. >> - After

Re: [systemd-devel] systemd-nspawn v237 - cannot start two containers with same directory

2018-09-10 Thread Lennart Poettering
On Do, 26.07.18 20:13, patlollamahi...@yahoo.co.in (patlollamahi...@yahoo.co.in) wrote: > Hi All, I am using systemd 237. I am trying to start two containers > using systemd-nspawn with same root directory. First one starts but > the second one throws the Error "Directory Tree /a/b/c/ is

Re: [systemd-devel] Long Running Startup Dependency

2018-09-10 Thread Lennart Poettering
On Do, 09.08.18 18:19, Chuck Wolber (chuckwol...@gmail.com) wrote: > Is it generally considered bad form to start up a service unit from within > an application? > > I have been trying to keep everything under the direct control of systemd, > but I ran in to a problem that I am not quite sure

Re: [systemd-devel] systemd-timesync and journalctl questions

2018-09-10 Thread Lennart Poettering
On Fr, 24.08.18 14:52, David Weinehall (david.weineh...@linux.intel.com) wrote: > We're having two time/date related issues/questions: > > First of all we'd need some counterpart to ntpdate. > > We have a system that lacks an RTC battery--the clock is reasonably reliable > once the system >

Re: [systemd-devel] systemd-resolved always forwards .local requests to DNS server

2018-09-10 Thread Lennart Poettering
On Mo, 06.08.18 17:53, Sergey Zolotorev (sergey.zoloto...@gmail.com) wrote: > I'm trying to understand what is wrong (or is there a bug in > systemd-resolved) with my systemd-resolved configuration (I use > NetworkManager to set up interfaces). systemd-resolved does not resolve > .local names and

Re: [systemd-devel] PrivateDevices= together with DevicePolicy=

2018-09-10 Thread Lennart Poettering
On Di, 21.08.18 09:57, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > Hi, > > I am turning on PrivateDevices and as a result getting a minimal /dev > tree for my service. Then I would like to add some selected devices > with DevicePolicy=auto & DeviceAllow=/dev/cam0. As a result, I don't >

Re: [systemd-devel] Does a generator need to take care of overrides in /etc?

2018-09-10 Thread Mantas Mikulėnas
On Mon, Sep 10, 2018 at 8:49 PM Lennart Poettering wrote: > On Do, 16.08.18 00:48, Bernhard Schmidt (be...@birkenwald.de) wrote: > > > Hi, > > > > I've been sent here by the great systemd maintainers in Debian for > > clarification. The situation was observed on systemd v239 on Debian > >

Re: [systemd-devel] Occasional issues with mounting NFS during reboot

2018-09-10 Thread Lennart Poettering
On Do, 30.08.18 14:21, Stefan Magnus Landrø (stefan.lan...@gmail.com) wrote: > Hi there! I'm having occasional issues with mounting NFS during reboots > (systemd 238 in latest coreos stable). > > systemd[1]: data-keys.mount: Mount process finished, but there is no mount. > systemd[1]:

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Michael Hirmke
Hi, >On Mon, 2018-09-10 at 09:55 +0200, Michael Hirmke wrote: >> > (I would just use `umount /var/backup`, however.) Can't do that as long as the mount unit is under systemd control. A few seconds later systemd remounts it on its own. >>> "noauto" mount option? >> >>

Re: [systemd-devel] How to add a unit path to systemd?

2018-09-10 Thread Lennart Poettering
On Sa, 11.08.18 10:21, Andrei Borzenkov (arvidj...@gmail.com) wrote: > 10.08.2018 20:10, Daniel Wang пишет: > >> Alternatively, you actually can issue daemon reload during the > > boot process > > > > Suppose I use a systemd service (say foo.service) to do this, is it a > > supported/recommended

Re: [systemd-devel] mount unit with special requirements

2018-09-10 Thread Lennart Poettering
On Mo, 10.09.18 20:53, Michael Hirmke (m...@mike.franken.de) wrote: > Hi, > > >On Mon, 2018-09-10 at 09:55 +0200, Michael Hirmke wrote: > >> > > > (I would just use `umount /var/backup`, however.) > > Can't do that as long as the mount unit is under systemd control. > A