Re: [systemd-devel] OnCalendar every X minutes

2015-03-29 Thread Mirco Tischler
2015-03-29 23:48 GMT+02:00 Max : > 29.03.2015 21:28, T.C. Hollingsworth пишет: >> >> On Mar 29, 2015 9:52 AM, "Max" > > wrote: >> > >> > Hi. >> > >> > Is there a way to make timer unit which will execute things every X >> > minutes where X >> > is not divis

Re: [systemd-devel] autoconf cache collision in check for gnuefi

2015-03-04 Thread Mirco Tischler
2015-03-05 1:22 GMT+01:00 Mirco Tischler : > Thanks > Mirco > Sorry I messed up, this was supposed to be. I figured it out. Patch in seperate Mail ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.or

Re: [systemd-devel] autoconf cache collision in check for gnuefi

2015-03-04 Thread Mirco Tischler
Thanks Mirco ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH] build-sys: fix check for efi-lds file

2015-03-04 Thread Mirco Tischler
Using the DIR macro breaks caching and has no benefit as it only offers performance improvements when AS_FOR is used with a single element list. Also --with-lds-dir= was broken as we never set have_efi_lds in this case. Fix this and check if PATH actually contains the efi-lds file. --- configure.a

[systemd-devel] autoconf cache collision in check for gnuefi

2015-03-01 Thread Mirco Tischler
Hi I get the following error when doing ./configure --enable-gnuefi: checking for /usr/lib/gnuefi/elf_x86_64_efi.lds... no checking for /usr/lib/elf_x86_64_efi.lds... (cached) no configure: error: *** gnuefi support requested but files not found even though the second file exists on my system. In

Re: [systemd-devel] How to prevent sleep during running oneshot units

2014-02-12 Thread Mirco Tischler
Am 13.02.2014 00:14 schrieb "Kai Krakow" : > > Mirco Tischler schrieb: > > > It's late here so excuse me if I'm missing something. But wouldn't a > > simple Before=sleep.target suffice to implement b)? > > I'm not sure... The unit is not e

Re: [systemd-devel] How to prevent sleep during running oneshot units

2014-02-11 Thread Mirco Tischler
Am 12.02.2014 01:31 schrieb "Kai Krakow" : > > Hey there! > Hey > I've got a daily backup job scheduled using a timer unit and a oneshot > service file. This backup takes around 2-4 hours. It's using rsync and syncs > from btrfs HDD to a snapshotted btrfs on USB with inplace deltas. I'm > mentioni

Re: [systemd-devel] Merging journal logs from btrfs snapshots

2014-01-16 Thread Mirco Tischler
Am 16.01.2014 22:15 schrieb "Chris Murphy" : > > > On Jan 16, 2014, at 1:58 PM, Kai Krakow wrote: > > > Chris Murphy schrieb: > > > >> Due to anti-magic, a recent update horribly broke the system's ability to > >> do further updates. This is resolved by regression to a prior Btrfs > >> snapshot,

Re: [systemd-devel] Fedora 16 and upstart

2013-05-04 Thread Mirco Tischler
2013/5/3 Chinmay Mahata > Hi, > > Thanks a lot, everybody for your support, for quick and valuable > comments. So it is time for me to write the systemd service scripts (and > bite the bullet !!! to be frank, I am not feeling much confident). > > Now I have few queries (may sound like dumb qu

Re: [systemd-devel] Fedora 16 and upstart

2013-05-02 Thread Mirco Tischler
2013/5/2 Chinmay Mahata > Hi All, > Sorry for asking such a noob question. > > I am migrating my system from fedora 13 (fc13) to fedora 16 64-bit (fc16 > x86_64) version. In fc13 all our module service scripts are written for > upstart/initctl. In fc16, there is no upstart/initctl support any

[systemd-devel] [PATCH] core: remove duplicate MESSAGE= from log message

2013-04-25 Thread Mirco Tischler
This was needed with log_struct_unit() but log_notice_unit() adds it anyway. --- src/core/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/unit.c b/src/core/unit.c index c0c3ce9..b624ca6 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -1468,7 +1468,7 @@ voi

Re: [systemd-devel] Journal issues

2013-04-12 Thread Mirco Tischler
2013/4/13 Zbigniew Jędrzejewski-Szmek > > On Sat, Apr 13, 2013 at 01:00:02AM +0200, Mirco Tischler wrote: > > 2013/4/12 Steven Hiscocks > > > > > Hi, > > > > > > I'm having two issues in relation to the journal with my recent upgrade to > >

[systemd-devel] [PATCH] journal: fix broken tags _SOURCE_REALTIME_TIMESTAMP and _MACHINE_ID

2013-04-12 Thread Mirco Tischler
--- src/journal/journald-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 53e3830..be84323 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -538,7 +538,7 @@ static v

Re: [systemd-devel] Journal issues

2013-04-12 Thread Mirco Tischler
2013/4/12 Steven Hiscocks > Hi, > > I'm having two issues in relation to the journal with my recent upgrade to > v201. > > One issue, is that it appears that "_MACHINE_ID" field is missing the "=" > character. I had a quick look, and I think the bug was introduced on the > last part of the follow

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Mirco Tischler
2013/3/5 Holger Winkelmann > > On Mar 5, 2013, at 10:21 PM, Mirco Tischler wrote: > > 2013/3/5 Holger Winkelmann > >> Hi David, >> >> On Mar 5, 2013, at 9:52 PM, David Strauss wrote: >> >> > On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelman

Re: [systemd-devel] Python wrappers for the DBus API

2013-03-05 Thread Mirco Tischler
2013/3/5 Holger Winkelmann > Hi David, > > On Mar 5, 2013, at 9:52 PM, David Strauss wrote: > > > On Mon, Mar 4, 2013 at 11:16 PM, Holger Winkelmann > wrote: > >> Or is there a special journal socket to write to? > > > > Yes, and the Python module's use of the C library wraps all of that. > > >

Re: [systemd-devel] systemd kiosk volatile $HOME

2013-03-05 Thread Mirco Tischler
2013/3/5 > Thank you Lennart. I wonder how your tip compares to our result? Our > method employs getty.target and local-fs.target. It works but we prefer > the Right Thing (tm). Would systemd-user-sessions.service be better for > any reason? Here's our unit as it sits. Thanks for your input. > >

[systemd-devel] [PATCH] coredump: make use of the cleanup macros

2013-02-04 Thread Mirco Tischler
--- src/journal/coredump.c | 41 ++--- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index 91528d3..021b4c6 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -32,6 +32,7 @@ #i

Re: [systemd-devel] [PATCH 3/3] coredump: make use of the cleanup macros

2013-02-04 Thread Mirco Tischler
2013/2/4 Zbigniew Jędrzejewski-Szmek > On Mon, Feb 04, 2013 at 03:13:25PM +0100, Mirco Tischler wrote: > > --- > > src/journal/coredump.c | 28 ++-- > > 1 file changed, 6 insertions(+), 22 deletions(-) > > > > diff --git a/src/journal/co

[systemd-devel] [PATCH 2/3] logs-show: show messages for all unit types in systemctl status

2013-02-04 Thread Mirco Tischler
I can't find a reason why we shouldn't try to output messages for other unit types than .service, .socket, .mount and .swap as well. It's probably a leftover from before we started logging UNIT= from inside PID 1. --- src/shared/logs-show.c | 11 --- 1 file changed, 11 deletions(-) diff -

[systemd-devel] [PATCH 3/3] coredump: make use of the cleanup macros

2013-02-04 Thread Mirco Tischler
--- src/journal/coredump.c | 28 ++-- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index 91528d3..4f79c45 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -32,6 +32,7 @@ #include "log.h"

[systemd-devel] [PATCH 1/3] journal: log user units for coredumps and show them in systemctl status

2013-02-04 Thread Mirco Tischler
--- src/journal/coredump.c | 9 ++--- src/shared/logs-show.c | 18 +++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/journal/coredump.c b/src/journal/coredump.c index c989be9..91528d3 100644 --- a/src/journal/coredump.c +++ b/src/journal/coredump.c @@ -144

Re: [systemd-devel] journalctl to csv

2013-01-29 Thread Mirco Tischler
2013/1/29 Kai Hendry > On 29 January 2013 15:33, Zbigniew Jędrzejewski-Szmek > wrote: > > Try 'journalctl --lines=0 --follow' with the latest git. > > Ah, I see the change: > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=67e04a486b92fcb656049cb4d6b66148c7d2e61b > > I'm too much of a n

Re: [systemd-devel] [Patch 0/5] support for logging the unit of user session units

2013-01-18 Thread Mirco Tischler
2013/1/18 Zbigniew Jędrzejewski-Szmek > Hi, > I had a look at the your patches (without actually running them :). > I started with a few cleanups, I'll post them as replies to this letter. > Then I had a better look at the logic of USER_UNIT and I have a few > questions. > > Hi Thanks for having

[systemd-devel] [Patch 0/5] support for logging the unit of user session units

2013-01-17 Thread Mirco Tischler
Hi The following series of patches implements support for logging user session units to the journal. Messages by the unit itself are marked with _SYSTEMD_USER_UNIT and messages regarding the unit from the systemd instance are marked with USER_UNIT. Patch 1: log _SYSTEMD_USER_UNIT into the journal

[systemd-devel] [PATCH 3/5] logs-show: add show_journal_by_user_unit

2013-01-17 Thread Mirco Tischler
Print the journal for a user session unit. For now this filters by _SYSTEMD_USER_UNIT and USER_UNIT and additionally _UID. --- src/shared/logs-show.c | 205 +++-- src/shared/logs-show.h | 12 +++ 2 files changed, 159 insertions(+), 58 deletions(-) diff

[systemd-devel] [PATCH 1/5] journal: log _SYSTEMD_USER_UNIT for user session units

2013-01-17 Thread Mirco Tischler
--- src/journal/journald-server.c | 11 +++- src/shared/cgroup-util.c | 122 -- src/shared/cgroup-util.h | 1 + 3 files changed, 105 insertions(+), 29 deletions(-) diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index

[systemd-devel] [PATCH 5/5] man: document the _SYSTEMD_USER_UNIT journal field

2013-01-17 Thread Mirco Tischler
--- man/systemd.journal-fields.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/systemd.journal-fields.xml b/man/systemd.journal-fields.xml index 13af4fd..2e9bc5b 100644 --- a/man/systemd.journal-fields.xml +++ b/man/systemd.journal-fields.xml @@ -212,13 +212,15 @@

[systemd-devel] [PATCH 4/5] systemctl: print the user session journal for user session units.

2013-01-17 Thread Mirco Tischler
--- src/systemctl/systemctl.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index a2ad0de..d196f15 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2466,13 +2466,23 @@ st

[systemd-devel] [PATCH 2/5] core: log USER_UNIT instead of UNIT if in user session

2013-01-17 Thread Mirco Tischler
--- src/core/execute.c | 12 ++-- src/core/job.c | 16 src/core/mount.c | 4 ++-- src/core/service.c | 4 ++-- src/core/unit.c| 8 src/core/unit.h| 5 - 6 files changed, 26 insertions(+), 23 deletions(-) diff --git a/src/core/execute.c b/src

Re: [systemd-devel] simultaneous udp listeners for ipv4+6 caused systemd to go into a loop

2012-12-04 Thread Mirco Tischler
2012/12/5 Thomas H.P. Andersen > I was looking into why the unit files for talkd/ntalkd were not > working [1]. For some reason specifying these two lines in the same > socket file triggers an unfortunate behavior in systemd: > ListenDatagram=[::]:517 > ListenDatagram=0.0.0.0:517 > > Systemd firs

Re: [systemd-devel] Starting systemd service in udev rule via ENV{SYSTEMD_WANTS} - help needed

2012-11-18 Thread Mirco Tischler
2012/11/18 Warpme > Well, > Things pretend to be simple seems to be not simple > After 2 days of fighting with issue I have to ask for help. > I want to kick systemd service when usb HDD is plugged. > As started service needs to know HDD label I wan to use templates. > Here is what it goes: > > u

Re: [systemd-devel] [PATCH] cgroup: look up user session units from cgroups as well.

2012-11-15 Thread Mirco Tischler
2012/11/15 Zbigniew Jędrzejewski-Szmek > On Tue, Nov 06, 2012 at 01:07:26AM +0100, Mirco Tischler wrote: > > This allows the journal code to set the _SYSTEMD_UNIT tag for messages > generated > > by systemd --user session units. > Hi, > this would open the door to spoo

[systemd-devel] [PATCH] cgroup: look up user session units from cgroups as well.

2012-11-05 Thread Mirco Tischler
This allows the journal code to set the _SYSTEMD_UNIT tag for messages generated by systemd --user session units. --- src/shared/cgroup-util.c | 79 +++- 1 file changed, 51 insertions(+), 28 deletions(-) diff --git a/src/shared/cgroup-util.c b/src/share

Re: [systemd-devel] [PATCH] cgroup: look up user session units from cgroups as well.

2012-11-05 Thread Mirco Tischler
2012/11/6 Mirco Tischler : > This allows the journal code to set the _SYSTEMD_UNIT tag for messages > generated > by systemd --user session units. Sorry forgot to commit some changes. Updated version follows. ___ systemd-devel mailing lis

[systemd-devel] [PATCH] cgroup: look up user session units from cgroups as well.

2012-11-05 Thread Mirco Tischler
This allows the journal code to set the _SYSTEMD_UNIT tag for messages generated by systemd --user session units. --- src/shared/cgroup-util.c | 76 +++- 1 file changed, 49 insertions(+), 27 deletions(-) diff --git a/src/shared/cgroup-util.c b/src/share

Re: [systemd-devel] no log for user sessions in systemctl?

2012-11-05 Thread Mirco Tischler
2012/11/5 Thomas Meyer : > Hi, > > why is no log shown for user session? > > like this: > > $ systemctl --user status smServer.service > smServer.service - ShortMessage Server > Loaded: loaded (/usr/lib/systemd/user/smServer.service; enabled) > Active: active (running) since Mon

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Mirco Tischler
2012/10/31 Cliff Brake : > On Wed, Oct 31, 2012 at 10:36 AM, Mirco Tischler wrote: >> >> 2012/10/31 Cliff Brake : >> >> 6) nfs mount either the server's /var/log/journal over the clients >> /var/log/journal, or all of the >> clients /var/log/journal/s i

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Mirco Tischler
2012/10/31 Mirco Tischler : > 2012/10/31 Cliff Brake : >> Additionally, on the server, it seems like it makes sense to use the journal >> files for the log storage. >> 1) how would log rotation be managed (discard old logs)? > systemd does log rotation based on available

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Mirco Tischler
2012/10/31 Cliff Brake : > Hello, > > I've come up with several ideas: > > 1) scp/rsync the journal files to the server. >* how do we know when a file is ready to be scp'd? >* is there any way to get reasonable update rate? It seems running rsync > every 10s might get expensive. Each time

Re: [systemd-devel] Race condition for service dependent on mount

2012-10-18 Thread Mirco Tischler
2012/10/18 David Strauss : > If a service depends on a mount, systemd doesn't properly wait for the > mount to complete before starting the service. This creates bad race > conditions where the service may write to the mount directory before > the mount is active, which can stop the mount from even

Re: [systemd-devel] systemd-journald[257]: Allocation limit reached, rotating

2012-10-17 Thread Mirco Tischler
2012/10/17 Reindl Harald : > how large is the limit here? > > a machine running F17 since this night has a dedicated > /var/log/ with 1 GB and after send out a small newsletter > this happens 4 times in "dmesg" > > for me it seems the limits are too tight in the case of > small but dedicated /var/l

Re: [systemd-devel] systemd unexpectedly dropping into rescue mode - how do I best debug this?

2012-10-04 Thread Mirco Tischler
2012/10/4 Ingo Molnar : > Here are the kernel parameters: > > lyra:~> cat /proc/cmdline > > BOOT_IMAGE=/boot/bzImage > root=UUID=dd8873f1-9cfd-4338-b9ec-f4902abdc486 ro single rd.md=0 > rd.lvm=0 rd.dm=0 SYSFONT=latarcyrheb-sun16 > earlyprintk=serial,ttyS0,115200 console=ttyS0,115200 console=tt

Re: [systemd-devel] Launching a unit in response to a D-Bus signal

2012-10-02 Thread Mirco Tischler
2012/10/2 "Jóhann B. Guðmundsson" : > On 10/01/2012 10:53 PM, Mirco Tischler wrote: >> >> Systemd isn't really the right place to do network related stuff, imo. >> Such things are better dealt with in the network connection manager, >> where the informati

Re: [systemd-devel] Launching a unit in response to a D-Bus signal

2012-10-01 Thread Mirco Tischler
2012/10/2 Kok, Auke-jan H : > On Mon, Oct 1, 2012 at 4:58 AM, Matthew Booth wrote: >> I have a requirement to restart squid whenever the VPN goes up or down[1]. >> Reading around, it seems that the way to do this would be in response to the >> relevant D-Bus signal, which seems to be this one: >>

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

2012-09-27 Thread Mirco Tischler
ned to it. "cpuset" hence > broke code that assumed it it could create "cpu" groups and > just start them. > > * journalctl -f will now subscribe to terminal size changes, > and line break accordingly. > > Chan

Re: [systemd-devel] Keeping console messages on VT1

2012-09-26 Thread Mirco Tischler
2012/9/27 Henrik /KaarPoSoft : > On 09/27/12 00:05, Tom Gundersen wrote: >> >> On Thu, Sep 27, 2012 at 12:02 AM, Henrik /KaarPoSoft >> wrote: >>> >>> (b) Is there a way to have logind NOT show a login prompt on VT1? >> >> It is not logind that starts login, but getty. You want to disable >> getty@

[systemd-devel] [PATCH 2/2] journalctl: print correct timespan in verify

2012-09-22 Thread Mirco Tischler
The old code used a timestamp to print a timespan for unsealed journalfiles, incorrectly showing things like 2230 days of unsealed entries. Print the timespan between the first and last entry instead. --- src/journal/journalctl.c | 2 +- 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(

[systemd-devel] [PATCH 1/2] journal: set seal even for readonly journalfiles

2012-09-22 Thread Mirco Tischler
journalctl needs to know wether the file has been sealed to be able to do verification. --- src/journal/journal-file.c | 3 +-- 1 Datei geändert, 1 Zeile hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 6db9955..f775fec 100644 --- a/s

Re: [systemd-devel] Question about After/Before of services

2012-08-09 Thread Mirco Tischler
2012/8/9 "Jóhann B. Guðmundsson" : > On 08/09/2012 04:28 AM, WANG Chao wrote: >> >> Hi, list >> >> As you see in the subject, this question comes from a lazy guy like me, >> who doesn't read the systemd source code at all :P >> >> The silly question is if A is configured to 'Wants:B' and 'After:B',

Re: [systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Mirco Tischler
2012/7/4 Kok, Auke-jan H : > On Tue, Jul 3, 2012 at 4:49 PM, Rob Spanton wrote: >> Hi, >> >> I wrote: >>> I was recently working on an embedded system that had a daemon >>> [ ...which] needed to be run when both [serial] devices were plugged >>> in. If any of the devices was unplugged, the daemon

Re: [systemd-devel] `systemd-analyze blame`indicates GDM3 takes longer to start with service file than with init.d script

2012-06-25 Thread Mirco Tischler
2012/6/25 Paul Menzel : > Dear systemd folks, > > > after a system start I save the output of `systemd-anlyze blame`. > > With Debian Sid/unstable, GDM 3.4.1 and the shipped init.d script on > average it took about 120 ms. For example: > >    124ms gdm3.service > > Adding the following service file

Re: [systemd-devel] MemoryLimit and MemorySoftLimit

2012-03-26 Thread Mirco Tischler
Am 26. März 2012 16:46 schrieb Lennart Poettering : > On Mon, 26.03.12 11:06, Albert Strasheim (full...@gmail.com) wrote: > > See http://www.kernel.org/doc/Documentation/cgroups/memory.txt for more > information how MemoryLimit= and MemorySoftLimit= work. > >> Is there a way for an application to d

Re: [systemd-devel] Right way to do kexec

2012-03-21 Thread Mirco Tischler
Am 22. März 2012 01:38 schrieb Marti Raudsepp : > On Thu, Mar 22, 2012 at 02:16, Mirco Tischler wrote: >> Unless you want to use kexec on panic. In that case the kexec kernel >> should be loaded at boot, doesn't it? But I don't know if this is >> actually in u

Re: [systemd-devel] Right way to do kexec

2012-03-21 Thread Mirco Tischler
Am 22. März 2012 00:33 schrieb Lennart Poettering : > On Wed, 21.03.12 12:24, Marti Raudsepp (ma...@juffo.org) wrote: > >> Hi, >> >> I've been trying to figure out how to use systemd's kexec functionality >> right. >> >> When one runs "systemctl kexec", systemd simply shuts down and >> executes 'k

Re: [systemd-devel] systemd kernel syscall interface requirements

2012-01-15 Thread Mirco Tischler
2012/1/15 Ilyes Gouta : > Hi there, > > I'm looking at porting (just starting) systemd to an embedded Linux > distribution and would like to ask if systemd has any requirements as > far as the syscall interface is concerned (then minimal kernel > version)? Does the same stand for glibc (i.e. same q

Re: [systemd-devel] openvpn@.service

2011-11-15 Thread Mirco Tischler
2011/11/15 Manuel Amador (Rudd-O) : > It's a multi-instance service.  You can instance it several times based > on a parameter, much like tty@.service can be instantiated to be > tty@tty1.service. > > On Tue, 2011-11-15 at 10:06 -0500, Michael D. Berger wrote: >> Why does "openvpn@.service" have th

Re: [systemd-devel] Requires and After

2011-11-09 Thread Mirco Tischler
2011/11/9 Michael D. Berger : > myDaemon must start after myBaseDaemon, and must start only > if myBaseDaemon is started. > >  Do I use: >  After=myBaseDaemon >  Requires=myBaseDaemon >  ;or only: >  Requires=myBaseDaemon >  ? > > Thanks, > Mike. > The first. Requires alone doesn't ensure the order

Re: [systemd-devel] After httpd.service

2011-11-05 Thread Mirco Tischler
2011/11/6 Michael D. Berger : > In my F15_64, in myUpperDaemon.service, I need the > dependency specified by: > > After httpd.service > > but there is no httpd.service .  After looking at > /etc/init.d/httpd, I see no obvious reason why > I shouldn't write a httpd.service .  But then, why is > it n

Re: [systemd-devel] Question about generators and adding new units in the middle of a transaction

2011-11-04 Thread Mirco Tischler
2011/11/4 Manuel Amador : > I am developing systemd support for ZFS: > > https://github.com/zfsonlinux/zfs/pull/435/files > > as you can see, I create the units early on bootup using a generator (a > mechanism that is entirely undocumented, tsk). > > Then systemd proceeds with normal system startup

Re: [systemd-devel] Systemd flapping detection

2011-11-02 Thread Mirco Tischler
2011/11/3 tsuraan : >> RestartSec allows you to set the time waited before restarting so that >> you can avoid systemd needing to restart the service too often before >> it starts successfully. > > Is there a cooldown period that I need to exceed to prevent systemd > from giving up?  Assuming it ta

Re: [systemd-devel] Systemd flapping detection

2011-11-02 Thread Mirco Tischler
2011/11/2 tsuraan : > Is there a way to disable systemd's flapping detection that causes it > to give up on starting services that exit too quickly?  The closest > thing I can find to controlling this is the Restart= option, but that > doesn't seem to do what I need.  My situation is that each PC i

Re: [systemd-devel] starting/stopping network interfaces with systemd

2011-10-09 Thread Mirco Tischler
2011/10/9 Cliff Brake : > On Sat, Oct 8, 2011 at 11:09 AM, Cliff Brake wrote: >>> and a service file like this: >>> >>> cat networl@.service: >>> [Service] >>> Type=oneshot >>> RemainAfterExit=yes >>> ExecStart=/sbin/ifup %i >>> ExecStop=/sbin/ifdown %i >>> StandardOutput=syslog+console >> >> I'm

Re: [systemd-devel] starting/stopping network interfaces with systemd

2011-10-07 Thread Mirco Tischler
2011/10/7 Cliff Brake : > Hi, > > I'm trying to customize systemd to start/stop network interfaces in an > embedded system (OpenEmbedded/Angstrom).  Angstrom has some support > for systemd and its working fairly well so far.  Are there any > examples I can start with?  Basically, when a network dev

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/15 Stefan G. Weichinger : > > additional info: > > # systemctl status amanda.socket > amanda.socket >          Loaded: loaded (/etc/systemd/system/amanda.socket) >          Active: failed since Thu, 15 Sep 2011 00:04:17 +0200; 19min ago >        Accepted: 22; Connected: 0 >          CGroup:

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/14 Stefan G. Weichinger : > Am 14.09.2011 22:58, schrieb Mirco Tischler: > >> Pretty much identical to what I wrote. You can find information about >> User and Group in systemd.exec. > > Ah, yes, did now. > >> Minor detail: you don't want the Install s

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/14 Stefan G. Weichinger : > What I have now: > > # cat amanda.socket > [Socket] > ListenStream=10080 > Accept=true > > [Install] > WantedBy=sockets.target > > # cat amanda\@.service > [Unit] > Description=amandad > > [Service] > ExecStart=-/usr/libexec/amanda/amandad -auth=bsdtcp amdump > Us

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
Here it is 2011/9/10 Mirco Tischler : > 2011/9/8 Stefan G. Weichinger : >> >> Greets, systemd-devs and -users, >> >> maybe I ask a FAQ, pls be kind ... >> >> I am rather new to systemd and figuring out how to use it w/ gentoo >> linux. It is available

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/14 Stefan G. Weichinger : > Am 2011-09-08 22:39, schrieb Stefan G. Weichinger: >> >> Greets, systemd-devs and -users, >> >> maybe I ask a FAQ, pls be kind ... >> >> I am rather new to systemd and figuring out how to use it w/ gentoo >> linux. It is available within the gentoo-portage-package

Re: [systemd-devel] question

2011-09-13 Thread Mirco Tischler
2011/9/13 Sérgio Basto : > On Mon, 2011-09-12 at 20:21 +0200, Tomasz Torcz wrote: >> On Mon, Sep 12, 2011 at 05:49:21PM +0100, Sérgio Basto wrote: >> > On Mon, 2011-09-12 at 15:47 +0200, Tomasz Torcz wrote: >> > > On Mon, Sep 12, 2011 at 03:34:48PM +0200, Reindl Harald wrote: >> > > > >> > Man , wh

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-09 Thread Mirco Tischler
2011/9/8 Stefan G. Weichinger : > > Greets, systemd-devs and -users, > > maybe I ask a FAQ, pls be kind ... > > I am rather new to systemd and figuring out how to use it w/ gentoo > linux. It is available within the gentoo-portage-package-system, yes. > Compiles etc. > > But IMO it still needs some

Re: [systemd-devel] systemd automounts

2011-08-02 Thread Mirco Tischler
2011/8/2 Steve Dickson : > > > On 08/02/2011 04:35 AM, Mirco Tischler wrote: >> 2011/8/2 Steve Dickson : >>> >>> >>> On 08/01/2011 09:10 PM, Mirco Tischler wrote: >>>> Hi >>>> 2011/8/2 Steve Dickson : >>>>>> >

Re: [systemd-devel] systemd automounts

2011-08-02 Thread Mirco Tischler
2011/8/2 Steve Dickson : > > > On 08/01/2011 09:10 PM, Mirco Tischler wrote: >> Hi >> 2011/8/2 Steve Dickson : >>>> >>>> Yes, this looks like a good usecase. >>>> >>>> Hmm, does the automount point work after boot? >>>

Re: [systemd-devel] sub-processes handling question

2011-07-25 Thread Mirco Tischler
2011/7/25 Honza Horak : > Hi, > > I'm wondering how good systemd is in killing all sub-processes when a > service fails/ends (un)expectedly. Let's say a service forks several times > during its execution and the forked processes do some nasty work to detach > from parent process. Can we be sure tha

Re: [systemd-devel] Service should run with a certain User?

2011-04-23 Thread Mirco Tischler
Hi 2011/4/23 Baldur : > Hi, > > I am embarrassed to answer myself after hitting the send button. > Of course i should not have put "test.sh" in /root , because the > user has no rights to access it... > > It works now - but now the stopping the service seems a problem. > It always goes to failed be

Re: [systemd-devel] howto migrate some things to systemd

2011-04-19 Thread Mirco Tischler
2011/4/19 Michael Olbrich : > Hi, > > On Tue, Apr 19, 2011 at 09:02:47AM +0200, Robert Schwebel wrote: >> On Mon, Apr 18, 2011 at 11:57:46PM +0200, Mirco Tischler wrote: >> > How about pointing the default.target symlink at your custom unit that >> > pulls in only

Re: [systemd-devel] howto migrate some things to systemd

2011-04-18 Thread Mirco Tischler
Hi 2011/4/17 Michael Olbrich : > Hi, > > I'm trying to migrate some stuff to systemd, but I have some problems > getting it right. > The scenario: > I'm cross-building root file systems. I try to do as much as possible > on the host system, but there is some stuff that needs to run on the target >

Re: [systemd-devel] PgSQL, MySQL systemd services - how to rewrite complex init scripts?

2011-04-09 Thread Mirco Tischler
2011/4/9 Michał Piotrowski > >> Have you considered using a file in /etc/tmpfiles.d and let syBstemd > take > >> care of this? > >> > >> Mirco > >> > > > > No, but I think that this is a good idea. Thanks! > > >> > Hmmm... but what if I want to change default dir? I use /home/data/ > instead of

Re: [systemd-devel] PgSQL, MySQL systemd services - how to rewrite complex init scripts?

2011-04-09 Thread Mirco Tischler
Hi 2011/4/9 Michał Piotrowski > Hi, > ... > > Mysql script also has some data dir creation code - I think it can > also be moved to separated script. > > Thoughts, recommendations, comments are welcome > > -- > Best regards, > Michal Have you considered using a file in /etc/tmpfiles.d and let s

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-03-16 Thread Mirco Tischler
Am 17.03.2011 02:32, schrieb Lennart Poettering: > On Thu, 17.03.11 02:21, Mirco Tischler (mircotisch...@gmx.net) wrote: >>> Your sshd seems to return exit with a non-zero exit code just indicating >>> a failure of some kind. use "ExecStart=-/foo/bar" instead of >

Re: [systemd-devel] systemd and sshd.socket/sshd@.service

2011-03-16 Thread Mirco Tischler
Am 17.03.2011 01:13, schrieb Lennart Poettering: > On Sat, 19.02.11 00:15, Vasiliy G Tolstov (v.tols...@selfip.ru) wrote: > > Hmm, can you try to reproduce this when booting with > systemd.log_level=debug and systemd.log_target=kmsg on the kernel > cmdline? Then, kmsg should definitely

Re: [systemd-devel] [PATCH] ExecConfigTest first try

2011-01-12 Thread Mirco Tischler
Am 11.01.2011 17:40, schrieb Alexander E. Patrakov: > 11.01.2011 21:11, Mirco Tischler wrote: > > > > Sorry, this doesn't work as expected. To reproduce the problem: > 1) Start a service with a good config > 2) Edit the config. Make a typo. > 3) Attempt to relo

[systemd-devel] [PATCH] ExecConfigTest first try

2011-01-11 Thread Mirco Tischler
diff --git a/src/load-fragment.c b/src/load-fragment.c index 261180d..b268f81 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -1853,6 +1853,7 @@ static int load_from_path(Unit *u, const char *path) { { "ExecReload", config_parse_exec, u->servic

[systemd-devel] [PATCH] service: ExecConfigTest command to test config before startup/restart/reloading of service.

2011-01-11 Thread Mirco Tischler
The ExecConfigTest command is trigerred before each ExecStart/Pre, ExecReload and ExecRestart command and the execution of those commands is denied when the ExecConfigTest fails. --- src/load-fragment.c |1 + src/service.c | 52 +++ src/s

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-11 Thread Mirco Tischler
Am 11.01.2011 16:11, schrieb Alexander E. Patrakov: >> Also, the "test config before reloading" feature still doesn't work >>> right. If I add this ExecReload line before the existing one: >>> >>> ExecReload=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf >>> >>> then systemd will kill lighttp

[systemd-devel] [PATCH] service: Allow mainpid to restart in other than SERVICE_EXEC_START.

2011-01-10 Thread Mirco Tischler
This patch should fix it. Can you test it? The problem was that after a the mainpid exits, and because there are commands left to execute systemd assumes it executes an ExecStart line from a type=oneshot service file. But in this case it executes an ExecReload line. This patch simply removes the as

Re: [systemd-devel] 'tasks' as first-order objects?

2010-08-13 Thread Mirco Tischler
Am 13.08.2010 12:49, schrieb Claes H: > On Thu, Aug 12, 2010 at 9:21 PM, Lennart Poettering > wrote: >> So, maybe "Type=transient" is nicer? Sounds a bit scientific but this >> word is not unheard in the Free software world at least (i.e. X uses >> that iirc) and describes pretty accurately what