Re: [systemd-devel] openvpn: tap0 br0 missing

2011-11-22 Thread Reindl Harald
Am 22.11.2011 03:53, schrieb Michael D. Berger: A few questions: In this line: ExecStopPost=-/etc/init.d/openvpn-bridge stop Restart=always Why do you have '-' after '=' ? I don't see the '-' in to not fail if /etc/init.d/openvpn-bridge not exists and so i can use the same

[systemd-devel] Creating unit file - conditional process arguments

2011-11-22 Thread Honza Horak
Hi all, Let's have the following case: the environment variable $FOO can be defined but it doesn't have to be. Then I want to pass this variable to a process in the unit file like --foo $FOO, but only if the variable is not empty. Something like the following has been done in the SysV init

[systemd-devel] WorkingDirectory in service file

2011-11-22 Thread Christian Hesse
Hello everybody, I use a service file for openvpn from the Arch Linux systemd-arch-units package: [Unit] Description=OpenVPN connection to %i After=network.target [Service] Type=forking ExecStart=/usr/sbin/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i WorkingDirectory=/etc/openvpn

Re: [systemd-devel] systemd diagnostics

2011-11-22 Thread Michal Schmidt
On 11/22/2011 04:36 AM, Edward Z. Yang wrote: 3. Listing enabled services. We should not have to write horrible scripts like this: In F16 you can use systemctl list-unit-files. Michal ___ systemd-devel mailing list

Re: [systemd-devel] [PATCH 0/3] watchdog handling with systemd

2011-11-22 Thread Michael Olbrich
On Tue, Nov 08, 2011 at 11:29:05AM +0100, Michael Olbrich wrote: On Fri, Nov 04, 2011 at 03:38:39PM +0100, Michael Olbrich wrote: here is a new version of the first 3 patches updated as suggested. The actual /dev/watchdog handling is not part of this series. It needs some more work to

[systemd-devel] Support machines with multiple RTCs?

2011-11-22 Thread Martin Langhoff
Hi list! I have just been perusing the systemd code, and wondering whether it supports systems that have two RTCs (where usually only one of them is the battery-backed clock, the other isn't battery backed but can wake the system up). Background: OLPC's new laptop, XO-1.75, is an ARM SoC that

[systemd-devel] How to properly allow user to adjust LimitNOFILE?

2011-11-22 Thread Peter Lemenkov
Hello! I already found that I could add LimitNOFILE=2048 to the Service section to explicitly set max number of opened files but I need something different. I want to allow user to specify it and set it only in case he specifies it. It looks like I should use something like ExecStartPre=ulimit -n

Re: [systemd-devel] Support machines with multiple RTCs?

2011-11-22 Thread Martin Langhoff
On Tue, Nov 22, 2011 at 12:28 PM, Kay Sievers kay.siev...@vrfy.org wrote:  #1 -- check for the hctosys property. If _any_ rtc present in the system has sysfs attribute hctosys == 1, it means that the kernel took care of it all, and userland doesn't need to call hwclock, at all. Systemd

[systemd-devel] [PATCH] Run rc-local after network.target, as it's often used for frobbing the network.

2011-11-22 Thread Bill Nottingham
--- units/fedora/rc-local.service |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/units/fedora/rc-local.service b/units/fedora/rc-local.service index 106b12c..9a38e59 100644 --- a/units/fedora/rc-local.service +++ b/units/fedora/rc-local.service @@ -8,6 +8,7 @@ [Unit]

Re: [systemd-devel] Support machines with multiple RTCs?

2011-11-22 Thread Koen Kooi
Op 22 nov. 2011, om 18:28 heeft Kay Sievers het volgende geschreven: On Tue, Nov 22, 2011 at 18:10, Martin Langhoff martin.langh...@gmail.com wrote: I have just been perusing the systemd code, and wondering whether it supports systems that have two RTCs (where usually only one of them is

Re: [systemd-devel] Support machines with multiple RTCs?

2011-11-22 Thread Kay Sievers
On Tue, Nov 22, 2011 at 21:18, Koen Kooi k...@dominion.thruhere.net wrote: Op 22 nov. 2011, om 18:28 heeft Kay Sievers het volgende geschreven: On Tue, Nov 22, 2011 at 18:10, Martin Langhoff  #2 -- is customary to prefer /dev/rtc if present -- so that we can symlink to the right rtc from

[systemd-devel] [PATCH] Allow 'list-unit-files' to run with --root.

2011-11-22 Thread Bill Nottingham
To do so, move the check for the bus to the bus-using portion of list_unit_files(), and ensure that get_config_path doesn't abort when checking the runtime path with --root. --- src/install.c |5 ++--- src/systemctl.c |5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff

Re: [systemd-devel] Support machines with multiple RTCs?

2011-11-22 Thread Martin Langhoff
On Tue, Nov 22, 2011 at 3:21 PM, Kay Sievers kay.siev...@vrfy.org wrote: Yeah, that's intentional. Udev on other platforms can't know which rtc should be the preferred one. Well, now you can: if it says hctosys == 1, it means that the kernel config told it to pick that one, and that it's sync'd

Re: [systemd-devel] Support machines with multiple RTCs?

2011-11-22 Thread Kay Sievers
On Tue, Nov 22, 2011 at 23:42, Martin Langhoff martin.langh...@gmail.com wrote: On Tue, Nov 22, 2011 at 3:21 PM, Kay Sievers kay.siev...@vrfy.org wrote: Yeah, that's intentional. Udev on other platforms can't know which rtc should be the preferred one. Well, now you can: if it says hctosys ==

Re: [systemd-devel] How to properly allow user to adjust LimitNOFILE?

2011-11-22 Thread Mathieu Bridon
On Tue, 2011-11-22 at 20:51 +0300, Peter Lemenkov wrote: Hello! I already found that I could add LimitNOFILE=2048 to the Service section to explicitly set max number of opened files but I need something different. I want to allow user to specify it and set it only in case he specifies it.

[systemd-devel] getty login prompt

2011-11-22 Thread Devendra Talegaonkar
Hello, I am running systemd on imx-53 eval board with kernel version 2.6.38. I am not getting login prompt. Following are systemd messages while booting Can anybody tell what is going wrong? Regards, devendra 30systemd[1]: systemd 37 running in system mode. (-PAM -LIBWRAP -AUDIT -SELINUX