Re: [systemd-devel] On writing a systemd service file

2011-07-11 Thread W. Michael Petullo
>> I am trying to migrate a service from a SysV-style initialization script >> to systemd on Fedora. >> >> After referencing the documentation I could find, I have written the >> following service description: >> >> [Unit] >> Description=DMAP Service >> After=avahi-daemon.service >> >> [Service]

Re: [systemd-devel] PATCH: add units for boot.local/halt.local on openSUSE

2011-07-11 Thread Lennart Poettering
On Thu, 07.07.11 14:59, Frederic Crozat ([email protected]) wrote: > Hi, > > attached patch adds a modified version of fedora rc-local/halt-local > services for openSUSE. Applied. Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailin

Re: [systemd-devel] [PATCH 1/2] wpa_supplicant: Add systemd support

2011-07-11 Thread Alexander E. Patrakov
Henry Gebhardt wrote: > --- /dev/null > +++ b/wpa_supplicant/systemd/[email protected] @@ -0,0 +1,11 @@ > +[Unit] > +Description=WPA supplicant daemon (interface-specific version) > +# NetworkManager users will probably want the dbus version instead. > +[Service] > +Type=simple > +ExecStart=

Re: [systemd-devel] On writing a systemd service file

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 22:43, Michael Biebl ([email protected]) wrote: > > 2011/7/11 W. Michael Petullo : > > I am trying to migrate a service from a SysV-style initialization script > > to systemd on Fedora. > > > > After referencing the documentation I could find, I have written the > > following serv

Re: [systemd-devel] [PATCH] shutdown: pivot_root to a tmpfs directory to properly umount root

2011-07-11 Thread Lennart Poettering
On Mon, 04.07.11 12:49, Harald Hoyer ([email protected]) wrote: > > On 30.06.2011 17:40, Harald Hoyer wrote: > > On 26.05.2011 13:35, Harald Hoyer wrote: > >> Rebased pivot_root patches can be pulled from: > >> > >> http://git.surfsite.org//systemd.git > >> git://git.surfsite.org/pub/git/sys

Re: [systemd-devel] [PATCH] Fix compilation without ACL

2011-07-11 Thread Zbigniew Jędrzejewski-Szmek
On 07/11/2011 10:31 PM, Lennart Poettering wrote: > On Wed, 06.07.11 15:14, Zbigniew Jędrzejewski-Szmek ([email protected]) wrote: > >> >> Compilation fails if sys/acl.h is not available. The configure script >> already tests for sys/acl.h presence, but the result was so far >> unused. To compile

Re: [systemd-devel] On writing a systemd service file

2011-07-11 Thread Michael Biebl
2011/7/11 W. Michael Petullo : > I am trying to migrate a service from a SysV-style initialization script > to systemd on Fedora. > > After referencing the documentation I could find, I have written the > following service description: > > [Unit] > Description=DMAP Service > After=avahi-daemon.serv

Re: [systemd-devel] [PATCH] Fix compilation without ACL

2011-07-11 Thread Lennart Poettering
On Wed, 06.07.11 15:14, Zbigniew Jędrzejewski-Szmek ([email protected]) wrote: > > Compilation fails if sys/acl.h is not available. The configure script > already tests for sys/acl.h presence, but the result was so far > unused. To compile without acl, stub implementations of the acl > functions

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 22:16, Kay Sievers ([email protected]) wrote: > >> - installing multiple DMs gives you a predictable default > >> - removing whatever the current default is falls back to other DMs > >>   that are currently installed > > > > If people want these problems solved one option would

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread David Michael
Hi, On Mon, Jul 11, 2011 at 3:34 PM, Lennart Poettering wrote: >> It is distributed under /lib (along with its link >> under graphical.target.wants), implying it should not be changed. > > Unit files (and symlinks) in /etc/systemd/system will override those in > /lib/systemd/system if the bear th

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread Kay Sievers
On Mon, Jul 11, 2011 at 22:11, Lennart Poettering wrote: > On Mon, 11.07.11 15:51, Bill Nottingham ([email protected]) wrote: >> Lennart Poettering ([email protected]) said: >> > > Sorry if I'm missing something simple or if I have confused myself >> > > beyond all hope.  I appreciate any ad

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 15:51, Bill Nottingham ([email protected]) wrote: > > Lennart Poettering ([email protected]) said: > > > Sorry if I'm missing something simple or if I have confused myself > > > beyond all hope. I appreciate any advice on how to prepare this in a > > > future-compatible w

Re: [systemd-devel] [PATCH] man: un-reverse IgnoreOnSnapshot description

2011-07-11 Thread Lennart Poettering
On Fri, 08.07.11 14:48, Zbigniew Jędrzejewski-Szmek ([email protected]) wrote: > I think that snapshots & devices are actually _not_ captured in > snapshots. Indeed. Thanks, applied! Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel ma

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread Bill Nottingham
Lennart Poettering ([email protected]) said: > > Sorry if I'm missing something simple or if I have confused myself > > beyond all hope. I appreciate any advice on how to prepare this in a > > future-compatible way. > > My recommendation is to simply list display-manager.service in Alias= i

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 15:29, David Michael ([email protected]) wrote: > > Hi, > > On Tue, Jul 5, 2011 at 6:20 PM, Kay Sievers wrote: > > To work in the right direction here, it might be worth to point out in > > this context, that the concept of a (multiplexing) prefdm.service > > should go away

Re: [systemd-devel] Environment for prefdm.service

2011-07-11 Thread David Michael
Hi, On Tue, Jul 5, 2011 at 6:20 PM, Kay Sievers wrote: > To work in the right direction here, it might be worth to point out in > this context, that the concept of a (multiplexing) prefdm.service > should go away sooner than, and all individual window manager should > install their own native ser

Re: [systemd-devel] Fwd: Re: [opensuse-packaging] Fwd: [RFC] Preset Files

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 17:22, Andreas Jaeger ([email protected]) wrote: > on Freitag, 8. Juli 2011, Robert Schweikert wrote: > > OK, did not know that and was not part of the original message. > > Well, using numbers works, still leaves one parsing all files for a > > specific service and then figuring out

Re: [systemd-devel] On writing a systemd service file

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 13:12, W. Michael Petullo ([email protected]) wrote: > I am trying to migrate a service from a SysV-style initialization script > to systemd on Fedora. > > After referencing the documentation I could find, I have written the > following service description: > > [Unit] > Description=

[systemd-devel] On writing a systemd service file

2011-07-11 Thread W. Michael Petullo
I am trying to migrate a service from a SysV-style initialization script to systemd on Fedora. After referencing the documentation I could find, I have written the following service description: [Unit] Description=DMAP Service After=avahi-daemon.service [Service] Type=forking PIDFile=/var/run/dm

Re: [systemd-devel] Services started realtime exit with 214

2011-07-11 Thread Barry Scott
On Monday 11 July 2011 17:27:26 Lennart Poettering wrote: > On Mon, 11.07.11 12:40, Barry Scott ([email protected]) wrote: > > > Do we have to configure something else to get this working like cgroup > > stuff? > > Running X under RR privs? That's bold. It is the only way we found to gua

Re: [systemd-devel] systemd environment variable handling and spaces bug?

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 16:49, Barry Scott ([email protected]) wrote: > I would like to take advantage of ${var} in the ExecStart lines. > > However I find that there is a issue with handling of while space. > > If I code this > > ExecStart=/myservice --arg ${optional_arg} > > If option_

Re: [systemd-devel] Services started realtime exit with 214

2011-07-11 Thread Lennart Poettering
On Mon, 11.07.11 12:40, Barry Scott ([email protected]) wrote: > I am trying to run services realtime with systemd on Fedora 15. > > Here is the Service section that I think we need to do this. > > [Service] > StandardOutput=syslog > WorkingDirectory=/data/data/logs > > LimitCORE=infinit

[systemd-devel] systemd environment variable handling and spaces bug?

2011-07-11 Thread Barry Scott
I would like to take advantage of ${var} in the ExecStart lines. However I find that there is a issue with handling of while space. If I code this ExecStart=/myservice --arg ${optional_arg} If option_arg is not defined argv is ['/myservice', '--arg', ''] Is it a bug that you do not stri

Re: [systemd-devel] [RFC] Preset Files

2011-07-11 Thread Kay Sievers
On Mon, Jul 11, 2011 at 17:09, Andreas Jaeger wrote: > On Tuesday, July 05, 2011 21:21:03 Lennart Poettering wrote: >> - If an admin wants to manually change "enable-by-default" to >>   "disable-by-default" (or vice versa) he could just drop his own file >>   with "disable *" (or "enable *") into

[systemd-devel] Fwd: Re: [opensuse-packaging] Fwd: [RFC] Preset Files

2011-07-11 Thread Andreas Jaeger
Asking on the openSUSE lists, I received the following proposal for an alternative implementation that I propose for discussion, Andreas -- Forwarded Message -- Subject: Re: [opensuse-packaging] Fwd: [systemd-devel] [RFC] Preset Files Date: Friday, July 08, 2011, 19:31:07 From:

[systemd-devel] [PATCH 2/2] wpa_supplicant: Edit BINDIR in dbus and systemd service files

2011-07-11 Thread Henry Gebhardt
This is useful, since in Gentoo BINDIR=/usr/sbin. --- wpa_supplicant/Makefile|9 + .../dbus/fi.epitest.hostap.WPASupplicant.service |5 - .../fi.epitest.hostap.WPASupplicant.service.in |5 + wpa_supplicant/dbus/fi.w1.wpa_supplicant1.ser

[systemd-devel] [PATCH 1/2] wpa_supplicant: Add systemd support

2011-07-11 Thread Henry Gebhardt
--- .../dbus/fi.epitest.hostap.WPASupplicant.service |1 + wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service |1 + wpa_supplicant/systemd/wpa_supplicant.service | 11 +++ wpa_supplicant/systemd/[email protected] | 11 +++ 4 files changed, 24 insertions

[systemd-devel] [PATCH 0/2] wpa_supplicant: systemd support and BINDIR

2011-07-11 Thread Henry Gebhardt
Hi, these two patches add support for using wpa_supplicant under systemd, while the second is not strictly necessary. I'd be glad if someone from systemd-devel could have a look a them, too. Thanks, Henry [PATCH 1/2] wpa_supplicant: Add systemd support [PATCH 2/2] wpa_supplicant: Edit BINDI

Re: [systemd-devel] [RFC] Preset Files

2011-07-11 Thread Andreas Jaeger
On Tuesday, July 05, 2011 21:21:03 Lennart Poettering wrote: > - If an admin wants to manually change "enable-by-default" to > "disable-by-default" (or vice versa) he could just drop his own file > with "disable *" (or "enable *") into /etc/systemd/system.preset/ and > override the vendor/spi

[systemd-devel] Services started realtime exit with 214

2011-07-11 Thread Barry Scott
I am trying to run services realtime with systemd on Fedora 15. Here is the Service section that I think we need to do this. [Service] StandardOutput=syslog WorkingDirectory=/data/data/logs LimitCORE=infinity LimitRTPRIO=2 LimitRTTIME=6000 CPUSchedulingPolicy=rr CPUSchedulingPriority=1 Exec

[systemd-devel] Services started realtime exit with 214

2011-07-11 Thread Barry Scott
I am trying to run services realtime with systemd on Fedora 15. Here is the Service section that I think we need to do this. [Service] StandardOutput=syslog WorkingDirectory=/data/data/logs LimitCORE=infinity LimitRTPRIO=2 LimitRTTIME=6000 CPUSchedulingPolicy=rr CPUSchedulingPriority=1 Exec