[systemd-devel] systemd default target

2016-02-12 Thread Pathangi Janardhanan
Hi All, The default target is usually set to multi-user or someother equivalent target. Is there any way in systemd that I can say something like " If the system is reloaded n number of times within the last x second", than set the default target to recover or emergency mode etc.? Basically I

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Feb 12, 2016 at 10:16:14PM +0100, Lennart Poettering wrote: > On Thu, 11.02.16 19:44, Zbigniew Jędrzejewski-Szmek ([email protected]) wrote: > > > On Thu, Feb 11, 2016 at 06:45:52PM +0100, Lennart Poettering wrote: > > > On Thu, 11.02.16 17:34, Zbigniew Jędrzejewski-Szmek ([email protected]

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Christian Seiler
On 02/12/2016 10:34 PM, Lennart Poettering wrote: > On Fri, 12.02.16 17:49, Simon McVittie ([email protected]) wrote: > >> On 11/02/16 17:06, Lennart Poettering wrote: >>> 5) Here's the controversial one I think: support for booting up >>>without /var. We have kludges at quite a f

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

2016-02-12 Thread Mikhail Kasimov
12.02.2016 23:36, Lennart Poettering пишет: > On Fri, 12.02.16 23:12, Mikhail Kasimov ([email protected]) wrote: > >> 12.02.2016 22:57, Lennart Poettering пишет: >>> On Fri, 12.02.16 22:28, Mikhail Kasimov ([email protected]) wrote: >>> > TimeoutStopSec= is set to 90s by defaul

Re: [systemd-devel] Network-pre.target and DefaultDependency

2016-02-12 Thread Lennart Poettering
On Fri, 12.02.16 11:48, Viraj Raiyani ([email protected]) wrote: > Hi All, > > > > I wanted to start a service before the networking service comes up and I > found out that you need to add dependency on network-pre.target as Before > and Wants in your service file. However, doing so resul

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

2016-02-12 Thread Lennart Poettering
On Fri, 12.02.16 23:12, Mikhail Kasimov ([email protected]) wrote: > 12.02.2016 22:57, Lennart Poettering пишет: > > On Fri, 12.02.16 22:28, Mikhail Kasimov ([email protected]) wrote: > > > >>> TimeoutStopSec= is set to 90s by default. Because it is opt-out and > >>> not opt-in it

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Fri, 12.02.16 17:49, Simon McVittie ([email protected]) wrote: > On 11/02/16 17:06, Lennart Poettering wrote: > > 5) Here's the controversial one I think: support for booting up > >without /var. We have kludges at quite a few places because we > >cannot access /var early du

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 23:32, Michael Biebl ([email protected]) wrote: > 2016-02-11 18:06 GMT+01:00 Lennart Poettering : > > Heya! > > > > So I am thinking about some spring cleaning, and would love to remove > > the following bits from the systemd package: > > > > 1) systemd-initctl (i.e. the /dev/initc

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 21:59, Martin Pitt ([email protected]) wrote: > Hello, > > answering for Debian/Ubuntu. > > Lennart Poettering [2016-02-11 18:06 +0100]: > > 1) systemd-initctl (i.e. the /dev/initctl SysV compat support). Last > >time Debian was still using that, maybe this changed now?

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 21:39, Reindl Harald ([email protected]) wrote: > > > Am 11.02.2016 um 20:37 schrieb Jóhann B. Guðmundsson: > >Arguably you should chop away the environment files support in the > >process since you are already wielding the axe... > > no - damned there are a ton of reasons

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 19:44, Zbigniew Jędrzejewski-Szmek ([email protected]) wrote: > On Thu, Feb 11, 2016 at 06:45:52PM +0100, Lennart Poettering wrote: > > On Thu, 11.02.16 17:34, Zbigniew Jędrzejewski-Szmek ([email protected]) > > wrote: > > > > > On Thu, Feb 11, 2016 at 06:06:45PM +0100, Lennart

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 19:18, Matthias Urlichs ([email protected]) wrote: > On 11.02.2016 18:49, Lennart Poettering wrote: > > Again: this does not break systems with split off /var, as I tried to > > make very clear in my original mail. All that's needed is that the > > initrd mounts /var before hand

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

2016-02-12 Thread Mikhail Kasimov
12.02.2016 22:57, Lennart Poettering пишет: > On Fri, 12.02.16 22:28, Mikhail Kasimov ([email protected]) wrote: > >>> TimeoutStopSec= is set to 90s by default. Because it is opt-out and >>> not opt-in it's set pretty much in all cases. >>> >>> Note that when the RuntimeMaxSec= timeout hit

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Lennart Poettering
On Fri, 12.02.16 10:04, Colin Guthrie ([email protected]) wrote: > Lennart Poettering wrote on 11/02/16 17:49: > > On Thu, 11.02.16 18:29, Matthias Urlichs ([email protected]) wrote: > > > >> Hi, > >> > >> Lennart Poettering: > >>> 5) Here's the controversial one I think: support for booting

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

2016-02-12 Thread Lennart Poettering
On Fri, 12.02.16 22:28, Mikhail Kasimov ([email protected]) wrote: > > TimeoutStopSec= is set to 90s by default. Because it is opt-out and > > not opt-in it's set pretty much in all cases. > > > > Note that when the RuntimeMaxSec= timeout hits and systemd starts > > terminating the servic

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

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 19:20, Jan Alexander Steffens ([email protected]) wrote: > > when i say "start and stop after 20 minutes" i mean stop it not fail > > > > usecase? > > I wanted to say "aborting Type=oneshot services," but that's what > TimeoutStartSec is for. So I was wondering what the poin

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

2016-02-12 Thread Mikhail Kasimov
12.02.2016 22:17, Lennart Poettering пишет: > On Thu, 11.02.16 20:14, Mikhail Kasimov ([email protected]) wrote: > >> 11.02.2016 19:48, Lennart Poettering пишет: >>> On Thu, 11.02.16 19:47, Mikhail Kasimov ([email protected]) wrote: >>> 11.02.2016 19:32, Jóhann B. Guðmundsson

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

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 20:14, Mikhail Kasimov ([email protected]) wrote: > 11.02.2016 19:48, Lennart Poettering пишет: > > On Thu, 11.02.16 19:47, Mikhail Kasimov ([email protected]) wrote: > > > >> 11.02.2016 19:32, Jóhann B. Guðmundsson пишет: > >> > * A new service sett

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

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 19:03, Reindl Harald ([email protected]) 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 > >

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

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 19:08, Jóhann B. Guðmundsson ([email protected]) wrote: > > > On 02/11/2016 05:47 PM, Lennart Poettering wrote: > >On Thu, 11.02.16 17:32, Jóhann B. Guðmundsson ([email protected]) wrote: > > > >>>I just tagged the v229 release of systemd. Enjoy! > >>> > >>>CHANGES WITH 229: >

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

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 22:26, Reindl Harald ([email protected]) wrote: > > Am 11.02.2016 um 22:19 schrieb Dave Reisner: > >On Thu, Feb 11, 2016 at 05:50:08PM +0100, Lennart Poettering wrote: > >>I just tagged the v229 release of systemd. Enjoy! > >> > >>CHANGES WITH 229: > >> > >> > >> > >>

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

2016-02-12 Thread Lennart Poettering
On Thu, 11.02.16 16:19, Dave Reisner ([email protected]) wrote: > On Thu, Feb 11, 2016 at 05:50:08PM +0100, Lennart Poettering wrote: > > Heya! > > > > I just tagged the v229 release of systemd. Enjoy! > > > > CHANGES WITH 229: > > > > > > > > * When the stacktrace is extracted from

[systemd-devel] Network-pre.target and DefaultDependency

2016-02-12 Thread Viraj Raiyani
Hi All, I wanted to start a service before the networking service comes up and I found out that you need to add dependency on network-pre.target as Before and Wants in your service file. However, doing so resulted in killing the networking service as my service unit was implicitly adding depende

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Simon McVittie
On 11/02/16 17:06, Lennart Poettering wrote: > 5) Here's the controversial one I think: support for booting up >without /var. We have kludges at quite a few places because we >cannot access /var early during boot. I don't think /var is really the same thing as /usr: for a start, it has to

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

2016-02-12 Thread Dave Reisner
On Fri, Feb 12, 2016 at 10:56:29AM +0100, Armin K. wrote: > On 12.02.2016 10:54, Colin Guthrie wrote: > > Dave Reisner wrote on 12/02/16 01:09: > >> On Thu, Feb 11, 2016 at 10:26:51PM +0100, Reindl Harald wrote: > >>> > >>> Am 11.02.2016 um 22:19 schrieb Dave Reisner: > On Thu, Feb 11, 2016 at

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

2016-02-12 Thread Colin Guthrie
Armin K. wrote on 12/02/16 09:56: > On 12.02.2016 10:54, Colin Guthrie wrote: >> Dave Reisner wrote on 12/02/16 01:09: >>> On Thu, Feb 11, 2016 at 10:26:51PM +0100, Reindl Harald wrote: Am 11.02.2016 um 22:19 schrieb Dave Reisner: > On Thu, Feb 11, 2016 at 05:50:08PM +0100, Lennart Po

Re: [systemd-devel] [RFC] the chopping block

2016-02-12 Thread Colin Guthrie
Lennart Poettering wrote on 11/02/16 17:49: > On Thu, 11.02.16 18:29, Matthias Urlichs ([email protected]) wrote: > >> Hi, >> >> Lennart Poettering: >>> 5) Here's the controversial one I think: support for booting up >>>without /var. >> >> Meh. I have quite a few multi-boot systems with a co

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

2016-02-12 Thread Armin K.
On 12.02.2016 10:54, Colin Guthrie wrote: > Dave Reisner wrote on 12/02/16 01:09: >> On Thu, Feb 11, 2016 at 10:26:51PM +0100, Reindl Harald wrote: >>> >>> Am 11.02.2016 um 22:19 schrieb Dave Reisner: On Thu, Feb 11, 2016 at 05:50:08PM +0100, Lennart Poettering wrote: > I just tagged the v

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

2016-02-12 Thread Colin Guthrie
Dave Reisner wrote on 12/02/16 01:09: > On Thu, Feb 11, 2016 at 10:26:51PM +0100, Reindl Harald wrote: >> >> Am 11.02.2016 um 22:19 schrieb Dave Reisner: >>> On Thu, Feb 11, 2016 at 05:50:08PM +0100, Lennart Poettering wrote: I just tagged the v229 release of systemd. Enjoy! CHANGES