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

2011-08-01 Thread Lennart Poettering
On Tue, 02.08.11 01:09, Miklos Vajna (vmik...@frugalware.org) wrote:

> On Tue, Aug 02, 2011 at 12:51:26AM +0200, Lennart Poettering 
>  wrote:
> > Looks good, but unfortunately doesn't apply anymore to git. May I ask
> > you to rebase the patch? I'll then make sure to apply it quickly before
> > I change configure.ac again.
> 
> Sure - updated patch attached.

Thanks!

Applied.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2011-08-01 Thread Miklos Vajna
On Tue, Aug 02, 2011 at 12:51:26AM +0200, Lennart Poettering 
 wrote:
> Looks good, but unfortunately doesn't apply anymore to git. May I ask
> you to rebase the patch? I'll then make sure to apply it quickly before
> I change configure.ac again.

Sure - updated patch attached.
From 5d9a96d4fb122ad0a4730452f940b7b924ffb685 Mon Sep 17 00:00:00 2001
From: Miklos Vajna 
Date: Tue, 2 Aug 2011 00:59:28 +0200
Subject: [PATCH] build-sys: Add --disable-hostnamed configure switch

---
 Makefile.am  |   50 +-
 configure.ac |8 
 2 files changed, 49 insertions(+), 9 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 54e389d..7971b6b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -171,7 +171,6 @@ rootlibexec_PROGRAMS = \
systemd-ac-power \
systemd-detect-virt \
systemd-sysctl \
-systemd-hostnamed \
 systemd-localed \
 systemd-timedated \
 systemd-logind \
@@ -182,6 +181,11 @@ rootlibexec_PROGRAMS += \
systemd-binfmt
 endif
 
+if ENABLE_HOSTNAMED
+rootlibexec_PROGRAMS += \
+   systemd-hostnamed
+endif
+
 systemgenerator_PROGRAMS = \
systemd-getty-generator
 
@@ -226,18 +230,26 @@ dist_pkgsysconf_DATA = \
 
 dist_dbuspolicy_DATA = \
src/org.freedesktop.systemd1.conf \
-src/org.freedesktop.hostname1.conf \
 src/org.freedesktop.locale1.conf \
 src/org.freedesktop.timedate1.conf \
 src/org.freedesktop.login1.conf
 
+if ENABLE_HOSTNAMED
+dist_dbuspolicy_DATA += \
+   src/org.freedesktop.hostname1.conf
+endif
+
 dist_dbussystemservice_DATA = \
src/org.freedesktop.systemd1.service \
-src/org.freedesktop.hostname1.service \
 src/org.freedesktop.locale1.service \
 src/org.freedesktop.timedate1.service \
 src/org.freedesktop.login1.service
 
+if ENABLE_HOSTNAMED
+dist_dbussystemservice_DATA += \
+   src/org.freedesktop.hostname1.service
+endif
+
 dist_udevrules_DATA = \
 src/70-uaccess.rules \
 src/71-seat.rules
@@ -260,10 +272,14 @@ dbusinterface_DATA = \
org.freedesktop.systemd1.Snapshot.xml \
org.freedesktop.systemd1.Swap.xml \
org.freedesktop.systemd1.Path.xml \
-org.freedesktop.hostname1.xml \
 org.freedesktop.locale1.xml \
 org.freedesktop.timedate1.xml
 
+if ENABLE_HOSTNAMED
+dbusinterface_DATA += \
+   org.freedesktop.hostname1.xml
+endif
+
 dist_bashcompletion_DATA = \
src/systemctl-bash-completion.sh
 
@@ -348,7 +364,6 @@ nodist_systemunit_DATA = \
units/systemd-initctl.service \
units/systemd-logger.service \
units/systemd-shutdownd.service \
-   units/systemd-hostnamed.service \
units/systemd-localed.service \
units/systemd-timedated.service \
units/systemd-logind.service \
@@ -384,6 +399,11 @@ nodist_systemunit_DATA += \
units/systemd-binfmt.service
 endif
 
+if ENABLE_HOSTNAMED
+nodist_systemunit_DATA += \
+   units/systemd-hostnamed.service
+endif
+
 dist_userunit_DATA = \
units/user/default.target \
units/user/exit.target
@@ -399,7 +419,6 @@ EXTRA_DIST = \
units/systemd-initctl.service.in \
units/systemd-logger.service.in \
units/systemd-shutdownd.service.in \
-   units/systemd-hostnamed.service.in \
units/systemd-localed.service.in \
units/systemd-timedated.service.in \
units/systemd-logind.service.in \
@@ -443,6 +462,11 @@ EXTRA_DIST += \
units/systemd-binfmt.service.in
 endif
 
+if ENABLE_HOSTNAMED
+EXTRA_DIST += \
+   units/systemd-hostnamed.service.in
+endif
+
 if TARGET_FEDORA
 dist_systemunit_DATA += \
units/fedora/prefdm.service \
@@ -505,11 +529,15 @@ pkgconfiglib_DATA = \
 
 # Passed through intltool only
 polkitpolicy_in_files = \
-src/org.freedesktop.hostname1.policy.in \
 src/org.freedesktop.locale1.policy.in \
 src/org.freedesktop.timedate1.policy.in \
 src/org.freedesktop.login1.policy.in
 
+if ENABLE_HOSTNAMED
+polkitpolicy_in_files += \
+   src/org.freedesktop.hostname1.policy.in
+endif
+
 # First passed through sed, followed by intltool
 polkitpolicy_in_in_files = \
src/org.freedesktop.systemd1.policy.in.in
@@ -1732,10 +1760,9 @@ endif
$(LN_S) graphical.target runlevel5.target && \
$(LN_S) reboot.target runlevel6.target )
( cd $(DESTDIR)$(systemunitdir) && \
-   rm -f default.target ctrl-alt-del.target 
dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service 
dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service 
autovt@.service && \
+   rm -f default.target ctrl-alt-del.target 
dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service 
dbus-org.freedesktop.login1.service autovt@.service && \
$(LN_S) graphical.target default.target && \
$(LN_S) reboot

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

2011-08-01 Thread Lennart Poettering
On Sun, 24.07.11 17:12, Miklos Vajna (vmik...@frugalware.org) wrote:

> On Thu, Jul 14, 2011 at 12:20:54AM +0200, Lennart Poettering 
>  wrote:
> > Neither hostnamed, nor logind/pam_systemd, nor localed, nor timedated
> > are necessary on most embedded setups. I'd be happy to merge a patch
> > that makes them individually disabable.
> 
> Hi Lennart,
> 
> I'm attaching a patch adding --disable-hostnamed.

Looks good, but unfortunately doesn't apply anymore to git. May I ask
you to rebase the patch? I'll then make sure to apply it quickly before
I change configure.ac again.

Thanks,

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2011-07-24 Thread Miklos Vajna
On Thu, Jul 14, 2011 at 12:20:54AM +0200, Lennart Poettering 
 wrote:
> Neither hostnamed, nor logind/pam_systemd, nor localed, nor timedated
> are necessary on most embedded setups. I'd be happy to merge a patch
> that makes them individually disabable.

Hi Lennart,

I'm attaching a patch adding --disable-hostnamed.

Thanks.
From 54e1f63cfedab9e2af5fc61b5d7f0ac5ef6de86d Mon Sep 17 00:00:00 2001
From: Miklos Vajna 
Date: Sun, 24 Jul 2011 17:08:44 +0200
Subject: [PATCH] build-sys: Add --disable-hostnamed configure switch

---
 Makefile.am  |   50 +-
 configure.ac |8 
 2 files changed, 49 insertions(+), 9 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 78c76d7..5faae15 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -170,7 +170,6 @@ rootlibexec_PROGRAMS = \
systemd-ac-power \
systemd-detect-virt \
systemd-sysctl \
-systemd-hostnamed \
 systemd-localed \
 systemd-timedated \
 systemd-logind \
@@ -181,6 +180,11 @@ rootlibexec_PROGRAMS += \
systemd-binfmt
 endif
 
+if ENABLE_HOSTNAMED
+rootlibexec_PROGRAMS += \
+   systemd-hostnamed
+endif
+
 systemgenerator_PROGRAMS = \
systemd-getty-generator
 
@@ -225,18 +229,26 @@ dist_pkgsysconf_DATA = \
 
 dist_dbuspolicy_DATA = \
src/org.freedesktop.systemd1.conf \
-src/org.freedesktop.hostname1.conf \
 src/org.freedesktop.locale1.conf \
 src/org.freedesktop.timedate1.conf \
 src/org.freedesktop.login1.conf
 
+if ENABLE_HOSTNAMED
+dist_dbuspolicy_DATA += \
+   src/org.freedesktop.hostname1.conf
+endif
+
 dist_dbussystemservice_DATA = \
src/org.freedesktop.systemd1.service \
-src/org.freedesktop.hostname1.service \
 src/org.freedesktop.locale1.service \
 src/org.freedesktop.timedate1.service \
 src/org.freedesktop.login1.service
 
+if ENABLE_HOSTNAMED
+dist_dbussystemservice_DATA += \
+   src/org.freedesktop.hostname1.service
+endif
+
 dist_udevrules_DATA = \
 src/70-uaccess.rules \
 src/71-seat.rules \
@@ -259,10 +271,14 @@ dbusinterface_DATA = \
org.freedesktop.systemd1.Snapshot.xml \
org.freedesktop.systemd1.Swap.xml \
org.freedesktop.systemd1.Path.xml \
-org.freedesktop.hostname1.xml \
 org.freedesktop.locale1.xml \
 org.freedesktop.timedate1.xml
 
+if ENABLE_HOSTNAMED
+dbusinterface_DATA += \
+   org.freedesktop.hostname1.xml
+endif
+
 dist_bashcompletion_DATA = \
src/systemctl-bash-completion.sh
 
@@ -347,7 +363,6 @@ nodist_systemunit_DATA = \
units/systemd-initctl.service \
units/systemd-logger.service \
units/systemd-shutdownd.service \
-   units/systemd-hostnamed.service \
units/systemd-localed.service \
units/systemd-timedated.service \
units/systemd-logind.service \
@@ -383,6 +398,11 @@ nodist_systemunit_DATA += \
units/systemd-binfmt.service
 endif
 
+if ENABLE_HOSTNAMED
+nodist_systemunit_DATA += \
+   units/systemd-hostnamed.service
+endif
+
 dist_userunit_DATA = \
units/user/default.target \
units/user/exit.target
@@ -398,7 +418,6 @@ EXTRA_DIST = \
units/systemd-initctl.service.in \
units/systemd-logger.service.in \
units/systemd-shutdownd.service.in \
-   units/systemd-hostnamed.service.in \
units/systemd-localed.service.in \
units/systemd-timedated.service.in \
units/systemd-logind.service.in \
@@ -441,6 +460,11 @@ EXTRA_DIST += \
units/systemd-binfmt.service.in
 endif
 
+if ENABLE_HOSTNAMED
+EXTRA_DIST += \
+   units/systemd-hostnamed.service.in
+endif
+
 if TARGET_FEDORA
 dist_systemunit_DATA += \
units/fedora/prefdm.service \
@@ -501,11 +525,15 @@ pkgconfigdata_DATA = \
 
 # Passed through intltool only
 polkitpolicy_in_files = \
-src/org.freedesktop.hostname1.policy.in \
 src/org.freedesktop.locale1.policy.in \
 src/org.freedesktop.timedate1.policy.in \
 src/org.freedesktop.login1.policy.in
 
+if ENABLE_HOSTNAMED
+polkitpolicy_in_files += \
+   src/org.freedesktop.hostname1.policy.in
+endif
+
 # First passed through sed, followed by intltool
 polkitpolicy_in_in_files = \
src/org.freedesktop.systemd1.policy.in.in
@@ -1679,10 +1707,9 @@ endif
$(LN_S) graphical.target runlevel5.target && \
$(LN_S) reboot.target runlevel6.target )
( cd $(DESTDIR)$(systemunitdir) && \
-   rm -f default.target ctrl-alt-del.target 
dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service 
dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service 
autovt@.service && \
+   rm -f default.target ctrl-alt-del.target 
dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service 
dbus-org.freedesktop.login1.service autovt@.service && \
$(LN_S) graphical.targ

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

2011-07-14 Thread Stef Bon
Hi,

what I've read is great, about session support and multiseat. In my
opinion the managment of seats and sessions always could be much
better, and your work looks good.

Futher it's smart to assign a usb hub to a certain seat and let all
devices connected be part of the same seat. In practice this is how it
goes, just plugin a usb hub and connect all the devices (keyboard,
mouse..) for the new seat to it.

I haven't had time to do much about me writing about systemd in
CBLFS/BLFS. I'm busy for a presentation I will give this in Antwerp:

http://we.voidwarranties.be/index.php/VoidCon2011

and been very busy for, as well as writing a new fuse fs basefs, which
is a FUSE test fs to decode audio files on the fly.

If you need a FUSE fs for your construction, I would like to do that,
it's sort of my area.
And for a construction I'm working on, a FUSE layer around the normal
Linux system, something like GoboLinux I need a scheduler. Now I'm
using at, which some enhancements, see:

http://linux.bononline.nl/wiki/index.php/At_extension_scripts

This does what is needed for my construction, and has features like
scripts/program's which can reschedule themselves. Like a rotatelog
files script, and it's running every day once. This is ok, but then
somehow there appears much more logging, causing the logsize get much
much bigger, the script decides it has to run much more frequent, say
twice a day.
This "dynamic" behaviour I haven't seen before.

At this moment this is complicated, using cron/fcron. With the "at
extension script" this is easy. I'm thinking about writing a new prog,
using polkit and the newest techniques like epoll, inotify and
timerfd. Something also interesting for systemd?

Stef

2011/7/14 Lennart Poettering :
> On Thu, 14.07.11 00:20, Lennart Poettering (lenn...@poettering.net) wrote:
>
>> - Similar, there's another one for time changes. Docs in the wiki on
>>   this iface will be available shortly.
>
> It is now:
>
> http://www.freedesktop.org/wiki/Software/systemd/timedated
>
>> - Multi-seat support is pretty comprehensively available now. X11 and
>>   gdm have not been ported to it yet. Documentation about the multi-seat
>>   logic will show up in the wiki shortly, too.
>
> And here it is:
>
> http://www.freedesktop.org/wiki/Software/systemd/multiseat
>
> Questions? Comments?
>
> Lennart
>
> --
> Lennart Poettering - Red Hat, Inc.
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2011-07-13 Thread Lennart Poettering
On Thu, 14.07.11 00:20, Lennart Poettering (lenn...@poettering.net) wrote:

> - Similar, there's another one for time changes. Docs in the wiki on
>   this iface will be available shortly. 

It is now:

http://www.freedesktop.org/wiki/Software/systemd/timedated

> - Multi-seat support is pretty comprehensively available now. X11 and
>   gdm have not been ported to it yet. Documentation about the multi-seat
>   logic will show up in the wiki shortly, too.

And here it is:

http://www.freedesktop.org/wiki/Software/systemd/multiseat

Questions? Comments?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [ANNOUNCE] systemd v30

2011-07-13 Thread Lennart Poettering
Heya,

http://www.freedesktop.org/software/systemd/systemd-30.tar.bz2

This is a bigger new release, including a lot of fresh code. If you are
looking for utmost stability you should continue to work with 29 for a
while.

Bigger changes include:

- There's a tiny mechanism daemon to allow system locale changes, for
  usage by GNOME and other DEs, see
  http://www.freedesktop.org/wiki/Software/systemd/localed for more
  information on the API

- Similar, there's another one for time changes. Docs in the wiki on
  this iface will be available shortly. 

- There's now a simple login daemon available ("systemd-logind") and
  installed by default. It takes over a lot of the logic of pam_systemd
  (which is now a small stub only, talking to logind, which makes it a
  lot more robust) as well as ConsoleKit and udev-acl. It keeps tracks
  of user sessions and seats. There's a tool "systemd-loginctl" which you can
  use to introspect the state of it, and manipulate users, sessions and
  seats.

- Due to logind we'll now autospawn VT gettys only when needed, not all
  the time. This means we normally boot up with zero gettys. (As mentioned
  previously)

- Multi-seat support is pretty comprehensively available now. X11 and
  gdm have not been ported to it yet. Documentation about the multi-seat
  logic will show up in the wiki shortly, too.

- If used in conjunction with dracut we will now jump back into the
  initrd on shutdown. Dracut will then unmount the root file system,
  detach all storage devices it was mounted on and
  power off. This is something long missing on Linux. This is only available in
  conjunction with dracut. If your OS is still using another initrd
  implementation, this might be killer feature that might be the reason
  to switch?

- we support translations for the PK policy files now. i18n for the
  client tool might be added later.

Neither hostnamed, nor logind/pam_systemd, nor localed, nor timedated
are necessary on most embedded setups. I'd be happy to merge a patch
that makes them individually disabable.

shortlog:

Bastien Nocera (1):
  build-sys: Add i18n support through intltool

Bill Nottingham (1):
  units: Use /etc/rc.d/rc.local as the path to rc.local in Fedora.

Frederic Crozat (2):
  systemctl: add support for --root for systemctl enable/disable/is-enabled
  units: add units for boot.local/halt.local on SUSE distributions.

Harald Hoyer (4):
  umount: log_info about what we unmounted
  umount: umount, until all umounts failed
  umount: log failed umounts only once at the end
  shutdown: pivot_root to a tmpfs directory to properly umount root

Henry Gebhardt (1):
  configure: Add --enable-plymouth option

Kay Sievers (3):
  clarify separate-/usr message
  build-sys: drop AM_GNU_GETTEXT as it fights with IT_PROG_INTLTOOL
  seat: udev - use ID_PATH_TAG instead of 'sed' hack

Lennart Poettering (173):
  update TODO
  manager: include full systemctl status command line in error message
  dbus: make bus_flags_to_events() and friends generally useful
  hostnamed: split dbus initialization into a separate function
  util: introduce dirent_is_file()
  english: s/_per_/_by_/
  util: add pipe_eof()
  util: move string enum mapping to the end
  logind: first version that compiles fine
  logind: split up logind.h
  logind: implement ACL management
  util: add fopen_temporary()
  logind: implement GC
  logind: unlink state files when stopping
  udev: simplify udev rules a bit
  dbus: add api for append gid/uid properties
  logind: implement D-Bus properties
  util: return errno in close_nointr()
  dbus: introduce UnsetAndSetEnvironment()
  service: check whether sysv scripts where changed
  util: make a couple of files we write atomic
  mechanisms: add mechanisms to change system locale and clock
  update TODO
  timedated: sync clock down to RTC where necessary
  timedated: rename a few things for clarification
  dbus: add dbus introspection extraction
  logind: implement idle hint logic
  logind: implement more dbus functionality
  logind: implement ListXXX bus methods
  logind: send dbus signals when sessions/users/seats come and go
  logind: send out PropertyChanged signals where appropriate
  logind: make idle hint logic work
  logind: hook up PAM module with logind
  logind: various clean-ups
  logind: make sure we hand out write fd, and keep read fd for session end 
detection
  logind: fix generation of bus arrays
  logind: remove a session when its cgroup is gone
  logind: when generating session ids with a counter, retry if session is 
already allocated
  logind: properly handle if two session with identical loginuids are 
attempted to be created
  logind: fix set of capabilities
  logind: use pipe fd to detect when a session is dead
  logind: save/restore session type