Re: [systemd-devel] systemd-run: why is output buffered now?

2016-04-01 Thread Reindl Harald
Am 01.04.2016 um 21:40 schrieb Lennart Poettering: On Sun, 20.03.16 14:22, Reindl Harald (h.rei...@thelounge.net) wrote: please take a look at https://bugzilla.redhat.com/show_bug.cgi?id=1319475 - this is a unlucky behavior change, not only for usability but for scripts with heavy output it's

[systemd-devel] Fwd: Start, stop en restart service by the user that is used to run the service script

2016-04-01 Thread Cecil Westerhof
Went to the wrong address. :'-( -- Forwarded message -- From: Cecil Westerhof Date: 2016-04-02 1:29 GMT+02:00 Subject: Re: [systemd-devel] Start, stop en restart service by the user that is used to run the service script To: Lennart Poettering 2016-04-01 21:23 GMT+02:00 Lennar

Re: [systemd-devel] From command-line 'systemctl suspend' works' from cron it does not

2016-04-01 Thread Cecil Westerhof
2016-04-01 21:34 GMT+02:00 Lennart Poettering : > On Mon, 21.03.16 09:21, Cecil Westerhof (cldwester...@gmail.com) wrote: > > > When executing > > systemctl suspend || echo "Error code: ${?}" > > from the command-line it outputs > > Error code: 1 > > and it puts my machine in suspend. > >

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Tobias Hunger
Hi Johann, Am 01.04.2016 17:38 schrieb "Jóhann B. Guðmundsson" : > So if your server has the role of an web server and the web service fails to run or is not run ( for example you forgot to enable it, or you misconfigured it before rebooting ) or that phone home service failed since it could not c

Re: [systemd-devel] Different behavior when OpenVPN is started as a service through systemd

2016-04-01 Thread Piotr Dobrogost
Lennart, thanks for taking time to reply. Lennart Poettering poettering.net> writes: > > This is probably something to ask the openvpn folks about. I did this as well in this thread – http://thread.gmane.org/gmane.network.openvpn.user/36761 > Note that systemd invokes services in a very mini

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

2016-04-01 Thread Mike Gilbert
On Wed, Feb 24, 2016 at 10:42 PM, Mike Gilbert wrote: > On Fri, Feb 19, 2016 at 7:22 AM, Lennart Poettering > wrote: >> On Thu, 18.02.16 20:33, Mike Gilbert (flop...@gentoo.org) wrote: >> >>> On Thu, Feb 11, 2016 at 12:06 PM, Lennart Poettering >>> wrote: >>> > 1) systemd-initctl (i.e. the /dev/

Re: [systemd-devel] systemd-run: why is output buffered now?

2016-04-01 Thread Lennart Poettering
On Sun, 20.03.16 14:22, Reindl Harald (h.rei...@thelounge.net) wrote: > please take a look at https://bugzilla.redhat.com/show_bug.cgi?id=1319475 - > this is a unlucky behavior change, not only for usability but for scripts > with heavy output it's also a memory usage problem Are you sure it's no

Re: [systemd-devel] From command-line 'systemctl suspend' works' from cron it does not

2016-04-01 Thread Lennart Poettering
On Mon, 21.03.16 09:21, Cecil Westerhof (cldwester...@gmail.com) wrote: > When executing > systemctl suspend || echo "Error code: ${?}" > from the command-line it outputs > Error code: 1 > and it puts my machine in suspend. > > When putting it in cron it gives the following errors: >

Re: [systemd-devel] service killed by cgroup controller pids?

2016-04-01 Thread Lennart Poettering
On Mon, 21.03.16 11:02, Han Pingtian (ha...@linux.vnet.ibm.com) wrote: > % cat /etc/systemd/system/reproducer.service > [Unit] > Description=Reproducer of systemd services killed by pids > After=multi-user.target > > [Service] > ExecStart=/home/hpt/reproducer/reproducer.sh > Type=forking > The

Re: [systemd-devel] Start, stop en restart service by the user that is used to run the service script

2016-04-01 Thread Lennart Poettering
On Thu, 24.03.16 08:19, Cecil Westerhof (cldwester...@gmail.com) wrote: > I have a service that is run as a normal user. I can ask a status of this > service, but would it also be possible to start, stop en restart the > service by the user itself? Please elaborate. Do you mean you use User= in t

Re: [systemd-devel] some services always being killed when stress tests running

2016-04-01 Thread Lennart Poettering
On Tue, 22.03.16 10:02, Han Pingtian (ha...@linux.vnet.ibm.com) wrote: > But only after about 30 minutes, a lot of systemd services failed > and restarted like this: > > ... ... > [26885.910036] systemd[1]: systemd-journald.service: Failed with result > 'signal'. > [26885.910218] systemd[1]: sy

Re: [systemd-devel] Input on a systemd service for kodi and strangeness with permissions on /dev/null (systemd 229)

2016-04-01 Thread Lennart Poettering
On Mon, 28.03.16 18:45, John (da_audioph...@yahoo.com) wrote: > I am trying to write a service that will start and stop kodi[1] on Linux. > The best working draft I have so far is here[2] but it does not end in a > clean state if I `systemctl stop kodi` so I am looking for a good way to use >

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Vasiliy Tolstov
2016-04-01 18:42 GMT+03:00 Jóhann B. Guðmundsson : > So if your server has the role of an web server and the web service fails to > run or is not run ( for example you forgot to enable it, or you > misconfigured it before rebooting ) or that phone home service failed since > it could not contact it

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Jóhann B . Guðmundsson
On 04/01/2016 03:15 PM, Tobias Hunger wrote: On Fri, Apr 1, 2016 at 4:59 PM, Jóhann B. Guðmundsson wrote: That makes no sense that an boot is not market completed until it manage to contact it's update servers but inline with other hacks coreOS is doing in relation with systemd. I sense a lo

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Jóhann B . Guðmundsson
On 04/01/2016 03:15 PM, Alex Crawford wrote: On 04/01, Jóhann B. Guðmundsson wrote: That makes no sense that an boot is not market completed until it manage to contact it's update servers but inline with other hacks coreOS is doing in relation with systemd. To what hacks, exactly, are you ref

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Tobias Hunger
Hi Alex, On Fri, Apr 1, 2016 at 5:14 PM, Alex Crawford wrote: > On 04/01, Tobias Hunger wrote: >> IIRC both coreos and chormeOS only mark a boot as successful after >> talking to their respective update servers. The assumption apparently >> is that the OS can fix itself when it is able to communi

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Alex Crawford
On 04/01, Jóhann B. Guðmundsson wrote: > That makes no sense that an boot is not market completed until it manage > to contact it's update servers but inline with other hacks coreOS is > doing in relation with systemd. To what hacks, exactly, are you referring? -Alex signature.asc Description

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Tobias Hunger
On Fri, Apr 1, 2016 at 4:59 PM, Jóhann B. Guðmundsson wrote: > That makes no sense that an boot is not market completed until it manage to > contact it's update servers but inline with other hacks coreOS is doing in > relation with systemd. I sense a lot of negativity here:-) A server needs to p

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Alex Crawford
On 04/01, Tobias Hunger wrote: > IIRC both coreos and chormeOS only mark a boot as successful after > talking to their respective update servers. The assumption apparently > is that the OS can fix itself when it is able to communicate properly > with its own update server. This isn't quite right.

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Jóhann B . Guðmundsson
On 04/01/2016 12:44 PM, Tobias Hunger wrote: Hi Jóhann and Vasiliy, IIRC both coreos and chormeOS only mark a boot as successful after talking to their respective update servers. The assumption apparently is that the OS can fix itself when it is able to communicate properly with its own update s

Re: [systemd-devel] Different behavior when OpenVPN is started as a service through systemd

2016-04-01 Thread Lennart Poettering
On Thu, 31.03.16 23:07, Piotr Dobrogost (p...@2016.forums.dobrogost.net) wrote: > Hi! > > When I start OpenVPN as a deamon from command line like this: > `sudo OPENSSL_ENABLE_MD5_VERIFY=1 openvpn --daemon --config > /etc/openvpn/xxx.conf` > the tunnel comes up with no problem. > However, when I s

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Tobias Hunger
Hi Jóhann and Vasiliy, IIRC both coreos and chormeOS only mark a boot as successful after talking to their respective update servers. The assumption apparently is that the OS can fix itself when it is able to communicate properly with its own update server. It would be nice if something similar c

Re: [systemd-devel] Different behavior when OpenVPN is started as a service through systemd

2016-04-01 Thread Piotr Dobrogost
Reindl Harald thelounge.net> writes: > Am 31.03.2016 um 23:07 schrieb Piotr Dobrogost: > > > > Please help Harald, thanks for taking time to reply. > get rid of MD5 and SHA1 certs in 2016 Thanks for suggestion. However it's not helpful. > openvpn works pretty fine with systemd Thanks for l

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Jóhann B . Guðmundsson
On 04/01/2016 10:52 AM, Vasiliy Tolstov wrote: 2016-04-01 13:50 GMT+03:00 Jóhann B. Guðmundsson : AFAIK the android boot process fires an standard broadcasting action "ACTION_BOOT_COMPLETED" once system services are up and running in memory, which is the time when it considered the boot being

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Vasiliy Tolstov
2016-04-01 13:50 GMT+03:00 Jóhann B. Guðmundsson : > AFAIK the android boot process fires an standard broadcasting action > "ACTION_BOOT_COMPLETED" once system services are up and running in memory, > which is the time when it considered the boot being completed and "stable". Thanks, how about Ch

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Jóhann B . Guðmundsson
On 04/01/2016 10:11 AM, Vasiliy Tolstov wrote: 2016-04-01 13:08 GMT+03:00 Jóhann B. Guðmundsson : I dont see how you plan on implement this if not with either a secondary program loader which stores an redundant environment or an kernel support that does the similar/same thing I mean you need

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Vasiliy Tolstov
2016-04-01 13:08 GMT+03:00 Jóhann B. Guðmundsson : > I dont see how you plan on implement this if not with either a secondary > program loader which stores an redundant environment or an kernel support > that does the similar/same thing I mean you need to have a watchdog > support,boot counter whi

Re: [systemd-devel] [networkd] Set MTU of disconnected OVS bridge

2016-04-01 Thread Lennart Poettering
On Thu, 24.03.16 09:52, Ian Pilcher (arequip...@gmail.com) wrote: > I have a "disconnected" Open vSwitch on my system named ovs1. By > "disconnected" I mean that it is not connected to any physical > interface, bond, etc.; it exists only for inter-VM communication. > > I just discovered that jum

Re: [systemd-devel] systemd efi boot and default entry

2016-04-01 Thread Jóhann B . Guðmundsson
On 03/31/2016 02:31 PM, Michal Sekletar wrote: We don't need to extend the kernel in order to implement this particular mechanism. After new kernel is installed, you make it default and mark as "tentative". Then, after first successful boot of newly added bootloader entry you just remove the fl

Re: [systemd-devel] Out of order events

2016-04-01 Thread Lennart Poettering
On Tue, 29.03.16 20:09, Nathaniel McCallum (npmccal...@redhat.com) wrote: > On Tue, 2016-03-29 at 23:20 +, Mantas Mikulėnas wrote: > > Afaik, udev only re-emits a uevent once it's done processing all the > > rules – this part is by design. So in your case, while udev worker 1 > > is still wait

Re: [systemd-devel] Out of order events

2016-04-01 Thread Lennart Poettering
On Tue, 29.03.16 18:15, Nathaniel McCallum (npmccal...@redhat.com) wrote: > I have a rule like this: > > ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="crypto_LUKS", > ENV{ID_FS_VERSION}="1", RUN+="sh -c 'echo password | cryptsetup open > $devnode luks-$env{ID_FS_UUID_ENC}'" > > Okay, my r

Re: [systemd-devel] Using systemd and cgroups for controlling access to a device

2016-04-01 Thread Lennart Poettering
On Fri, 01.04.16 15:11, Omkar Panse (omkarpa...@gmail.com) wrote: > Hi, > > I am trying to use systemd and cgroups to control access to device nodes. > However it doesn't seem to be working. The target is based on ARM. > > I have configured systemd for cgroups, created slices and also enabled >

[systemd-devel] Using systemd and cgroups for controlling access to a device

2016-04-01 Thread Omkar Panse
Hi, I am trying to use systemd and cgroups to control access to device nodes. However it doesn't seem to be working. The target is based on ARM. I have configured systemd for cgroups, created slices and also enabled required configuration in the kernel. What am I missing? Omkar

Re: [systemd-devel] Formal syntax of unit file format

2016-04-01 Thread Damiano Albani
On Fri, Apr 1, 2016 at 11:05 AM, Lennart Poettering wrote: > > > Wouldn't that be useful, in order to build a unit file validator / parser > > for example? > > As mentioned, there's "systemd-analyze verify" which not only checks > the general formatting but also tries to parse the various setting

Re: [systemd-devel] Formal syntax of unit file format

2016-04-01 Thread Lennart Poettering
On Sun, 27.03.16 19:04, Damiano Albani (damiano.alb...@gmail.com) wrote: > Hello, > > I've searched quite extensively but I haven't been able to find a *formal* > description of the unit file format (e.g. via ABNF). We never put that together really. And I am not sure we should put together an A