Commit Graph

552 Commits

Author SHA1 Message Date
Lennart Poettering d2134abdd5 build-sys: bump release for v37 2011-10-11 20:46:56 +02:00
Lennart Poettering 21e557edcc units: introduce local-fs-pre.target and remote-fs-pre.target
This hook target enables services to order themselves between
network.target and remote mounts, which is needed for GFS2 and similar
systems.
2011-10-11 03:33:53 +02:00
Lennart Poettering cec736d21f journal: implement parallel traversal in client 2011-10-08 02:21:05 +02:00
Lennart Poettering f4b4781191 journal: split user logs into their own journal files 2011-10-07 23:03:07 +02:00
Lennart Poettering 87d2c1ff6a journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
Lennart Poettering 652eb44a7f build-sys: fix build 2011-09-29 15:09:18 +02:00
Lennart Poettering fb9de93dd3 localed: add SetX11Keyboard() and SetVConsoleKeyboard() bus calls 2011-09-28 04:34:17 +02:00
Lennart Poettering 7c83341a59 build-sys: bump release 2011-09-23 18:30:02 +02:00
Lennart Poettering b52aae1d93 util: move virtualization detection into its own files, and extend return codes 2011-09-23 17:00:33 +02:00
Lennart Poettering 7ef5875d14 units: introduce unit file for FUSE fs
FUSE and configfs is very very similar, so handle both the same way.
2011-09-22 03:00:04 +02:00
Lennart Poettering ac0a983ac6 units: drop automount unit for /dev/hugepages
Since hugetlbfs cannot be compiled as kernel module there's little point
in doing on-demand mounting via autofs for it.
2011-09-21 03:56:56 +02:00
Lennart Poettering 1f2c94a487 units: drop automount unit for /dev/mqueue
Since the mqueue support cannot be built as a module there's little
benefit in having an autofs mount point set up for this.
2011-09-21 03:56:56 +02:00
Lennart Poettering 77f81d8b30 units: drop automount unit for /sys/kernel/security
Since securityfs cannot be build as module there's little value in
having an on-demand autofs mount point for it.
2011-09-21 03:56:56 +02:00
Lennart Poettering e124e7a4a1 units: drop automount unit for /sys/kernel/debug
Since debugfs cannot be compiled as module there's little benefit in
having it as autofs mount point.
2011-09-21 03:56:55 +02:00
Lennart Poettering 0286cc1551 units: drop /sys/kernel/config automount unit
The mount point directory /sys/kernel/config is only created after the
module is loaded, hence there's little value in having this an automount
unit: the runtime penalty for mounting an autofs here should be the same
as for a real mount.
2011-09-21 03:56:55 +02:00
Bill Nottingham d6bca18e28 units: Add support for automounting configfs, ala debugfs, etc. 2011-09-20 03:35:09 +02:00
Zbigniew Jędrzejewski-Szmek 11216eb0bd systemadm: add libgee as dependency and use it for a unit map 2011-09-20 01:06:01 +02:00
Zbigniew Jędrzejewski-Szmek 0dd27daff4 systemadm: add a wrappable label and use it for status lines
The new WrapLabel is there to work around a deficiency in GTK,
namely the fact that it is hard to make labels which are both
resizable and wrappable. The code is a port from libview.
2011-09-20 01:06:01 +02:00
Lennart Poettering fe7ac31021 build-sys: bump release 2011-09-01 02:10:25 +02:00
Lennart Poettering 801f44bb22 man: document /etc/timezone 2011-08-31 03:09:22 +02:00
Lennart Poettering 346bce1f4c stdout-bridge: rename logger to stdout-syslog-bridge to make it more descriptive 2011-08-30 22:42:49 +02:00
Lennart Poettering 66be5eda80 build-sys: bump version 2011-08-25 17:02:33 +02:00
Miklos Vajna 4cd1eaa545 build-sys: Add --disable-localed configure switch 2011-08-25 00:58:20 +02:00
Josh Triplett f08fce8820 tmpfiles: Move /tmp and /var/tmp to a separate tmpfiles.d file to ease overrides via /etc
Many people prefer to avoid clearing /tmp and /var/tmp, and
distributions often have explicit settings for how often to clear them
if at all.  Overriding those with systemd currently requires overriding
all of /usr/lib/tmpfiles.d/systemd.conf via
/etc/tmpfiles.d/systemd.conf, copying across all the other entries, and
updating that override when systemd.conf changes.

Move the /tmp and /var/tmp entries from systemd.conf to a separate
tmp.conf, making them easier to override without affecting the rest of
systemd.conf.
2011-08-24 20:39:33 +02:00
Miklos Vajna f47cd184c0 build-sys: Add --disable-timedated configure switch 2011-08-24 16:03:59 +02:00
Lennart Poettering ab1f063390 exec: optionally apply cgroup attributes to the cgroups we create 2011-08-20 00:22:02 +02:00
Lennart Poettering 47675042c2 bump release 2011-08-03 04:19:53 +02:00
Lennart Poettering a41fe3a293 nspawn: add new --no-net switch to turn off networking in the container 2011-08-02 04:49:37 +02:00
Miklos Vajna b2e9fb99ab build-sys: Add --disable-hostnamed configure switch 2011-08-02 01:38:43 +02:00
Lennart Poettering 6e5c044421 build-sys: make distcheck work 2011-08-01 17:09:38 +02:00
Lennart Poettering f975e971ac load-fragment: speed up parsing by using a perfect hash table with configuration settings built by gperf 2011-08-01 00:43:05 +02:00
Lennart Poettering fd42f6e020 build-sys: prepare new release 2011-07-29 03:15:20 +02:00
Michael Biebl 85f19d825e Link against -lcap only where required
Don't put -lcap into LIBS as otherwise everything will be linked against
it, like libsystemd-daemon, where this is not desired.
2011-07-28 05:01:12 +02:00
Lennart Poettering 9b71153605 build-sys: move libsystemd-login to /lib, too 2011-07-27 23:31:53 +02:00
Lennart Poettering 6a9bff42dc build-sys: fix make distcheck 2011-07-27 21:11:24 +02:00
Lennart Poettering 02f130cbd9 pkgconfig: move library .pc files to libdir 2011-07-26 21:44:37 +02:00
Lennart Poettering 41e4d6e9ac sysctl: apply network specific sysctls to each network card as they appear 2011-07-25 20:25:49 +02:00
Lennart Poettering 729e3769c3 systemctl: hook up new install logic
This adds a number of new options to systemctl, for presets, reenabling,
masking/unmask, and runtime operations.
2011-07-25 04:58:02 +02:00
Lennart Poettering c0576cd6d6 bus: expose installer functions 2011-07-23 03:44:47 +02:00
Lennart Poettering 830964834f install: add new installer implementation
This new installer will replace the current code of "systemctl enable"
but also be available via D-Bus. It adds a couple of new features:

- Mask/Unmask calls
- Reenable call
- Preset call
- Support for enabling units temporarily (i.e. in /run/systemd instead
  of /etc/systemd)
- Enumeration of installed units
- Support for out-of-search-path units

systemctl and D-Bus are not hooked up with this yet
2011-07-22 04:31:21 +02:00
Kay Sievers 35bf8dfb85 distribute: src/libsystemd-*.sym 2011-07-15 01:47:47 +02:00
Kay Sievers ae446765eb libsystemd-daemon: support installation in --with-rootlibdir 2011-07-15 01:31:06 +02:00
Lennart Poettering 1eae4c45c9 libs: add symbol versioning for the benefit of RPM 2011-07-14 23:49:37 +02:00
Lennart Poettering 114a50f898 sd-daemon: turn sd-daemon.c into a shared library 2011-07-14 23:06:31 +02:00
Lennart Poettering 74b91131ed logind: introduce libsystemd-login.so as fast path to access logind data 2011-07-14 22:51:28 +02:00
Lennart Poettering a61933adac man: add man page for systemd-loginctl 2011-07-13 22:37:53 +02:00
Lennart Poettering 54479a8fe9 build-sys: fix copynpaste mistake 2011-07-12 01:18:48 +02:00
Lennart Poettering 9356a6c656 build-sys: fix make distcheck 2011-07-12 01:11:40 +02:00
Lennart Poettering 7a41c61168 build-sys: add a number of missing header files to EXTRA_DIST 2011-07-12 01:11:40 +02:00
Frederic Crozat a268a6a38f units: add units for boot.local/halt.local on SUSE distributions. 2011-07-12 00:15:35 +02:00
Zbigniew Jędrzejewski-Szmek 2fb1aedaf2 logind: Fix compilation without ACL
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 are
used.
2011-07-11 22:29:45 +02:00
Bastien Nocera 1c7dde3e47 build-sys: Add i18n support through intltool
And put the PolicyKit policy files up for translation.
2011-07-11 21:10:33 +02:00
Lennart Poettering a4c279f874 loginctl: add various introspection functions 2011-07-08 21:39:10 +02:00
Lennart Poettering abca482291 loginctl: add basic implementation of loginctl for introspecting controlling sessions/users/seats 2011-07-07 03:29:56 +02:00
Lennart Poettering 1968a36040 cgls: add pager support to systemd-cgls 2011-07-07 02:34:35 +02:00
Lennart Poettering d42d27ead9 logind: add service for per-user shared systemd daemon 2011-06-30 02:18:01 +02:00
Lennart Poettering 530345e782 manager: use sd_notify() to notify parent systemd that we have finished startup 2011-06-30 02:15:41 +02:00
Lennart Poettering 0b191e603c logind: hook uaccess into udev by default 2011-06-29 04:14:43 +02:00
Lennart Poettering 8fa365e586 logind: add man page for configuration file 2011-06-29 02:27:53 +02:00
Lennart Poettering 193197e85c logind: parse configuration file 2011-06-29 01:47:55 +02:00
Lennart Poettering 47a2669062 logind: implement basic version of AttachDevice() D-Bus call 2011-06-28 20:50:43 +02:00
Lennart Poettering cd9e5d0a76 logind: activate autovt@.service instead of autovt-getty@.service when the user switches to a previously unused tty, since it doesn't have to be a getty we start on it on demand 2011-06-28 19:25:08 +02:00
Lennart Poettering 7f7bb94679 logind: implement SetUserLinger() D-Bus call 2011-06-28 03:52:22 +02:00
Lennart Poettering d0a522eb31 logind: autospawn gettys when necessary 2011-06-28 00:26:10 +02:00
Lennart Poettering 98a28fef26 logind: hook up PAM module with logind 2011-06-24 18:50:50 +02:00
Lennart Poettering 91f9dcaf92 dbus: add dbus introspection extraction 2011-06-21 19:29:45 +02:00
Lennart Poettering f401e48c2d mechanisms: add mechanisms to change system locale and clock 2011-06-21 19:29:45 +02:00
Lennart Poettering 3f49d45a45 logind: implement D-Bus properties 2011-06-21 19:29:44 +02:00
Lennart Poettering 5eda94dda2 logind: implement ACL management 2011-06-21 19:29:44 +02:00
Lennart Poettering 202630822f logind: first version that compiles fine 2011-06-21 19:29:44 +02:00
Lennart Poettering 835c60f50c build-sys: local-fs, remote-fs and swap are active anyway when user sessions are created, there is no point in having these units known in sessions 2011-06-15 15:54:50 +02:00
Lennart Poettering 5552b1c1b3 build-sys: fix build 2011-06-14 22:01:44 +02:00
Kay Sievers da26173785 drop hwclock-save.service
We don't want to fiddle around changing the RTC, not on bootup, not
on shutdown.

If we don't run NTP, we have absolutely no clue what's the current
time to store in the RTC. If we run NTP, the kernel syncs the system
time every 11 minutes to the RTC.

Especially in multi-boot environents we must not call hwclock(8)
which tries to be smart with calculating/storing/applying drifts
and such.

Live-CDs must never touch the RTC, because we don't know if it is
running in UTC or locatime.
2011-05-25 18:21:36 +02:00
Kay Sievers 7948c4dfbe rtc in localtime: use settimeofday(NULL, tz) instead of hwclock(8)
We check for LOCAL in /etc/adjtime and if needed, ask the kernel to
apply the timezone delta to the system clock.

The very first call of settimeofday() without a time, but a timezone
warps the system clock, so that it properly runs in UTC.
2011-05-24 20:23:07 +02:00
Michael Olbrich e4c1d706bd build-sys: create dbussystemservicedir
otherwise building fails if it doesn't exist:

( cd <DESTDIR>/usr/share/dbus-1/services && \
                rm -f org.freedesktop.systemd1.service && \
                ln -s ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
/bin/sh: line 0: cd: <DESTDIR>/usr/share/dbus-1/services: No such file or directory
2011-05-10 18:48:53 +02:00
Koen Kooi 1bd8b8184e build-sys: Angstrom support
This commit consists of the initial work to include Angstrom as a ported
distribution for systemd.

Angstrom tries to follow the debian way as much as possible, but deviates
where it doesn't make sense for 'embedded'.
2011-05-09 23:50:23 +02:00
Miklos Vajna 27669061f4 build-sys: Add --disable-binfmt configure switch 2011-04-27 00:08:47 +02:00
Kay Sievers 772f83719e tmpfiles.d: switch to stacked config dirs in /lib, /etc, /run 2011-04-25 21:38:21 +02:00
Kay Sievers db1413d738 sysctl.d, binfmt.d, modules-load.d: switch to stacked config dirs in /lib, /etc, /run 2011-04-25 20:41:47 +02:00
Chris E Ferron 54e4fdef80 MeeGo support
This commit consists of the initial work to include MeeGo as a ported
distribution for systemd.

The majority of the changes are small configuration additions to auto
tools, so that MeeGo is identified as a valid distribution option.

Some small deviations will be noticed between the configuration of MeeGo
and other distributions. As MeeGo is a distribution striving for
compliancy to support its near embedded attributes and target users,
there is less user configuration options available by default. Most
services will be enabled by systemd as part of the distribution
requirements, and as such most links and service files will be pre-setup
for the MeeGo distribution. As much of this is going to be done within
the MeeGo distribution packaging this is still noteworthy to mention, as
it explains why in systemd you will observe configuration differences
where the MeeGo distribution removes all links in the pkgsysconfdir for
instance.  MeeGo will be user configurable if there is desire, but most
services will be enabled by the distribution as designated by the MeeGo
compliancy standards.

Other changes are in source to add such areas as meego-release defined
in utils, and hostname in hostname-setup, defining vconsole-setup,
localizations and rescue additions as needed.

As this is all ground work, MeeGo will continue to strive for complete
compatibility.
2011-04-20 01:05:30 +02:00
Lennart Poettering 7640a5de1b hostnamed: introduce systemd-hostnamed
http://www.freedesktop.org/wiki/Software/systemd/hostnamed
2011-04-16 02:03:35 +02:00
Lennart Poettering bfebab7f69 dbus: split out object management code into dbus-common, and simplify it 2011-04-16 02:03:35 +02:00
Lennart Poettering f3bc7fdc7b man: add man page for ask-password 2011-04-08 17:57:17 +02:00
Lennart Poettering 4466194c43 units: rename rtc-set.target to time-sync.target and pull it in by hwclock-load.service
On request of Miroslav Lichvar, rename rtc-set.target to
time-sync.target since usually the RTC chip isn't involved at all in NTP
syncs.

Also, pull it in by hwclock-load.service.
2011-04-06 19:18:17 +02:00
Lennart Poettering f80781eaf9 var-lock: don't try to enable var-lock.mount if we don't install it 2011-04-06 15:57:37 +02:00
Lennart Poettering cb06add70d build-sys: we don't need rootsbindir anymore since we don't install anything to /sbin 2011-04-05 02:52:21 +02:00
Lennart Poettering 32d0463d5c build-sys: better don't use libexecdir here at all 2011-04-05 02:49:49 +02:00
Lennart Poettering bfdb49388f build-sys: fix libexecdir to /usr/lib 2011-04-05 02:40:59 +02:00
Kay Sievers 61fbbab869 build-sys: always place user units in /usr/lib/systemd
./configure --libexecdir=/usr/lib
2011-04-05 02:19:42 +02:00
Lennart Poettering d19c883d50 units: move user units from /usr/share to /usr/lib since they might be arch-dependent 2011-04-04 15:27:35 +02:00
Lennart Poettering c91faef3b3 man: document /etc/sysctl.d/ 2011-04-04 03:48:09 +02:00
Lennart Poettering 151b190e79 binfmt: add binfmt tool to set up binfmt_misc at boot 2011-04-04 03:36:42 +02:00
Kay Sievers 5b75435328 move /var/lock to HAVE_SYSV_COMPAT 2011-04-03 22:09:25 +02:00
Lennart Poettering cca4aeeead tmpfiles: split off rules for legacy systems into legacy.conf 2011-04-02 01:08:31 +02:00
Lennart Poettering bb29785e0d general: replace a few uses of /var/run by /run 2011-04-01 15:25:46 +02:00
Lennart Poettering 7ebdfc936e build-sys: create a number of drop-in config dirs 2011-03-31 18:17:32 +02:00
Lennart Poettering f695b3b09b build-sys: install systemd-analyze by default 2011-03-31 03:25:30 +02:00
Andrey Borzenkov 8c944383c2 units: replace Names=dm.service with symlink for mandriva prefdm 2011-03-18 19:32:49 +03:00
Andrey Borzenkov 0c380104cf mount: pull in quota services from local mountpoints with usr/grpquota options 2011-03-18 19:12:58 +03:00
Lennart Poettering 6699c857a2 units: we don't need to generate syslog.target with sed anymore 2011-03-18 05:01:30 +01:00
Lennart Poettering db25d1d765 units: we no longer need m4 to build graphical.target or multi-user.taregt 2011-03-18 04:59:05 +01:00
Lennart Poettering b1c66c44ef units: on mandriva/fedora create single.service alias via symlink, not Names= 2011-03-18 04:53:31 +01:00
Lennart Poettering f1dd0c3f9b syslog: rework syslog detection so that we need no compile-time option what the name of the syslog implementation is 2011-03-18 04:53:31 +01:00
Lennart Poettering 177b3ffedb special: get rid of dbus.target 2011-03-18 04:53:12 +01:00
Lennart Poettering f6a6225e41 def: centralize definition of default timeout in one place 2011-03-17 04:02:35 +01:00
Miklos Vajna 196e3fa74a Add Frugalware display-manager service 2011-03-16 03:53:55 +01:00
Lennart Poettering 8f7a3c1402 man: document systemd-nspawn 2011-03-15 20:51:59 +01:00
Lennart Poettering 2a796654b9 getty: move automatic serial getty logic into generator 2011-03-15 00:45:46 +01:00
Lennart Poettering 04d391dabc nspawn: move container into its own name=systemd cgroup 2011-03-14 22:33:58 +01:00
Lennart Poettering 1063dc3a52 units: add console-shell.service which can be used insted of the gettys to get a shell on /dev/console 2011-03-14 21:00:53 +01:00
Lennart Poettering a5f9be4579 build-sys: move remaining tools from sbin/ to bin/ since they might eventually be useful for user execution 2011-03-14 18:17:28 +01:00
Lennart Poettering 8821347618 nspawn: add simple chroot(1) like tool to execute commands in a namespace container 2011-03-14 03:12:25 +01:00
Kay Sievers 3eb4d9a214 build-sys: add org.freedesktop.systemd1.policy to CLEANFILES
ERROR: files left in build directory after distclean:
./src/org.freedesktop.systemd1.policy
make[1]: *** [distcleancheck] Error 1
2011-03-12 14:31:44 +01:00
Lennart Poettering 25705583af polkit: autogenerate polkit policy with correct paths 2011-03-12 01:15:30 +01:00
Lennart Poettering a8f11321c2 systemctl: support remote and privileged systemctl access via SSH and pkexec
This adds support for executing systemctl operations remotely or as
privileged user while still running systemctl itself unprivileged and
locally.

This currently requires a D-Bus patch to work properly.

https://bugs.freedesktop.org/show_bug.cgi?id=35230
2011-03-12 01:07:17 +01:00
Lennart Poettering 29d958ce2b machine-id: move machine-id-setup to /sbin 2011-03-09 22:13:24 +01:00
Andrey Borzenkov 1de4d79bf5 build-sys: add Mandriva distribution support
This merges several separate patches that I carry as part of
Mandriva systemd RPM. They touch those parts that are very
unlikely to be changed in near future and do not impose any
functionality change for systemd core. I also think it is
useful for troubleshooting to have real distribution name in
system logs, espicially when someone reports problem upstream.

The patch looks bigger than sum of replaced patches because

- previous patches were applied on top of distro=fedora, now
I need to add all those bits for distro=mandriva as well

- part of patch was done as spec file magic, but it seems more
logical to ship all these bits together
2011-03-08 19:47:36 +01:00
Lennart Poettering b670e92b50 syslog: make sure the kmsg bridge is always pulled in and never terminated automatically
Since we want to replace the bridge dynamically by the real syslog
implementation such as rsyslog we need to make sure that the the bridge
stays running right to the moment rsyslog is up so that we process
messages enqueued by other processes started before rsyslog, so that
those clients don't stay stuck.
2011-03-07 21:56:13 +01:00
Lennart Poettering c4b5a3d66f mount: make /media a tmpfs 2011-03-07 17:38:15 +01:00
Lennart Poettering d7ccca2e3f main: introduce /etc/machine-id
This is supposed to play the same roles /var/lib/dbus/machine-id,
however fixes a couple of problems:

- It is available during early boot since it is stored in /etc

- Removes the ID from the D-Bus context and moves it into a system
  context, thus hopefully lowering hesitation by people to use it.

- It is generated at installation time. If the file is empty at boot
  time it will be mounted over with a randomly generated ID, which is
  not saved to disk. This is useful to support state-less machines with
  no transient or writable /etc configuration.
2011-03-04 21:53:19 +01:00
Lennart Poettering aa2e211587 units: synchronize gettys to plymouth even if plymouth is killed by gdm 2011-02-24 02:32:50 +01:00
Lennart Poettering 07faed4f99 virtualization: beef virtualization code 2011-02-21 21:48:59 +01:00
Lennart Poettering 83cc030fad shutdown: execute all binaries in /lib/systemd/system-shutdown as last step before invoking reboot() 2011-02-15 00:30:11 +01:00
Lennart Poettering 522d4a495a systemd: document systemd-tmpfiles 2011-02-13 15:08:15 +01:00
Lennart Poettering 74ce487daf tmpfiles: move binary to /bin to make it publicly available 2011-02-13 14:04:57 +01:00
Lennart Poettering 88dfa2938a units: introduce and hook up sound.target 2011-02-09 21:07:53 +01:00
Jeff Mahoney cd3f8b7ddb plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
Lennart Poettering 63c862b051 cryptsetup: fix ordering loop when dealing with encrypted swap devices
https://bugzilla.redhat.com/show_bug.cgi?id=657234
2011-01-21 03:30:18 +01:00
Lennart Poettering 26742b3fd8 vala: convert from dbus-glib to gdbus 2011-01-20 18:24:26 +01:00
Lennart Poettering 9a57c62944 systemctl: highlight failed processes in systemctl status 2011-01-20 18:22:03 +01:00
Tom Gundersen dda9be8a99 arch: remove rc-local.service
This is now shipped downstream.
2011-01-17 22:41:28 +01:00
Lennart Poettering c292c495fb build-sys: prepare v16 2011-01-08 02:34:55 +01:00
Lennart Poettering 2c4b304e64 specifier: at minimal test 2011-01-06 23:51:52 +01:00
Miklos Vajna f5c88ec133 build-sys: frugalware linux support 2010-11-29 17:07:41 +01:00
Michael Biebl 2f6a1ab18e Create convenience library libsystemd_daemon.la for sd-daemon.c
Instead of compiling sd-daemon.c 10 times, create a noinst convenience
library libsystemd_daemon.la.
2010-11-26 20:41:52 +01:00
Kay Sievers d0ef2204b4 gnome-ask-password-agent: also support libnotify < 0.7 for now 2010-11-26 17:59:53 +01:00
Gustavo Sverzut Barbieri d2ffe6deac units: Remove Gentoo specific xdm.service
That unity pulls in OpenRC which in turn pulls in most of legacy
system that causes lots of troubles as it is too smart, thus not
recommended.

Moreover, SystemD developers seems to agree that a service file per DM
is the best approach, so having gdm.service, kdm.service, slim.service
is better than a single wrapper for them.
2010-11-25 00:30:16 +01:00
Lennart Poettering 28cdc98ae8 build-sys: get rid of special fedor install target 2010-11-24 23:26:33 +01:00
Thierry Reding 46891d97b2 build-sys: distribute introspect.awk 2010-11-24 22:28:43 +01:00
Thierry Reding 382a0310f6 build-sys: fix out-of-tree build
The introspect AWK script is located in the source tree, which is not
necessarily the same as the build tree, so prepend $(srcdir).
2010-11-24 22:28:34 +01:00
Thierry Reding 9a60da2834 build-sys: allow cross-compilation
When cross-compiling systemd, the introspection XML files fail to be
generated because the systemd host binary is not executable. This patch
works around this by putting the introspection XML data into separate
ELF sections and extracting them from the binary when generating the XML
files.

The extracted XML data is passed through the strings utility in order to
strip the trailing NUL character. A small AWK script is used to prepend
the doctype and add the opening and closing node tags respectively.
Finally, the C preprocessor is used to substitute the correct doctype
information from the D-Bus header files.
2010-11-23 22:38:55 +01:00
Lennart Poettering a7c64469b6 man: document /etc/modules-load.d/ 2010-11-21 20:41:00 +01:00
Lennart Poettering e17fb72914 man: document /etc/os-release 2010-11-21 20:05:51 +01:00
Lennart Poettering ee48647271 man: document locale.conf 2010-11-21 19:29:27 +01:00
Lennart Poettering eeca220bc2 man: document /etc/vconsole.conf 2010-11-21 19:12:44 +01:00
Lennart Poettering 6a7e63eff2 man: document /etc/hostname 2010-11-21 16:29:56 +01:00
Lennart Poettering b1a2da0a79 cryptsetup: show udev device name when asking for password 2010-11-18 23:34:42 +01:00
Lennart Poettering 8e1bd70d4c sysctl: implement native sysctl tool to support Debian-style /etc/sysctl.d 2010-11-18 21:52:26 +01:00
Lennart Poettering 8cf3a8a982 units: enable console ask-password agent by default 2010-11-18 05:22:25 +01:00
Lennart Poettering 2f8cd170ae cryptsetup: automatically order crypt partitions before cryptsetup.target 2010-11-18 02:16:36 +01:00
Lennart Poettering af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Kay Sievers d8b4dbe6d7 delete tmp.mount which may conflict with an unrelated fstab entry 2010-11-15 19:47:25 +01:00
Lennart Poettering 2fa47da53e build-sys: make check for libnotify explicit 2010-11-15 18:42:34 +01:00
Michael Biebl 7611630462 Remove umount*.service files for Debian
With the introduction of native shutdown/reboot, the killall.service was
removed (as this functionality was moved into systemd-shutdown).
Without killall.service though, the umount*.service files no longer work
correctly.
Wit native mount support those files are also no longer necessary, so
remove them.
2010-11-14 22:14:39 +01:00
Lennart Poettering f90cf44c02 load-fragment: properly do comparison of words 2010-11-14 19:59:10 +01:00
Lennart Poettering 7f4e08056d cryptsetup: hook up tool with ask-password 2010-11-12 00:40:27 +01:00
Lennart Poettering 5a1e99375d manager: hookup generators 2010-11-12 00:40:26 +01:00
Lennart Poettering 9190132924 build-sys: fix usage of path macros 2010-11-12 00:40:26 +01:00
Ran Benita 42bb3074fe add bash completion for systemctl --system
I've been playing recently with systemd on Arch, and had much fun. But
soon, alas, my fingers started to ache from repeatedly writing
systemctl restart some-long-service.service. So, I wrote a completion
script. I figured other people may want to use it, so I prepared a
patch against systemd-git (attached).

There are some notes/disclaimers, however:

- It requires bash>=4.0, sed, grep and awk. A bash-completion package
is not strictly needed; sourcing the file is enough.
- It wouldn't work properly with --session, as I had no way to test it.
- It uses the output of systemctl list-units directly when that's
enough, but also runs systemctl show when completing on some verbs
(for example, to check for AllowIsolate=yes). This /may/ be somewhat
slow once there are many units, since it calls a dbus method on each
one. Is there a faster way to have that information?
- The code is perhaps a bit long and messy; honestly, I blame the tool ;)

One way to improve on the situation is to integrate some completion
code in systemctl itself, the way e.g. gdbus, gsettings and django do
it. This will allow for finer grained and faster completions, and it
won't be necessary to keep the verb/option tables in sync with some
other file. But it does mean adding all of this code in C. If this is
acceptable, I'll try to have a go at it.

Finally, a couple of completion tips I run into:
- If you alias systemctl to, say, sctl, you get completions on that
too by running to following command:
complete -F _systemctl sctl
- Add the following line to your .inputrc, to have the completion show
after only a single tab press:
set show-all-if-ambiguous on
It makes the shell quite more pleasant.

Hope it's good enough!

Ran
2010-11-10 23:02:44 +01:00
Lennart Poettering 06cdd2484c ac-power: make ac-power a proper binary that scripts can call 2010-11-10 22:38:44 +01:00
Lennart Poettering e9ddabc246 manager: parse RD_TIMESTAMP passed from initrd 2010-11-10 22:38:44 +01:00
Lennart Poettering e23a0ce8ba cryptsetup: minimal cryptsetup unit generator 2010-11-10 22:38:43 +01:00
Brandon Philips 4149f86d81 man/tmpfiles.d.xml: add a manpage for tmpfiles.d
Initial commit of a tmpfiles.d manpage.

I ran it through xmllint but I don't know how to make it look pretty
like the rest of the xml files. :-P

Signed-off-by: Brandon Philips <bphilips@suse.de>
2010-11-05 00:20:28 +01:00
Lennart Poettering 198b625ba7 units: add unit to call /bin/plymouth update-root-fs --read-write 2010-10-30 23:56:12 +02:00
Lennart Poettering c7d78a5679 fedora: enable system mounting/swapping by default 2010-10-29 16:28:29 +02:00
Lennart Poettering 5d474b8848 units: no need to create rescue.target.wants anymore 2010-10-29 16:28:29 +02:00
Lennart Poettering de47ca9b50 units: make fedora/single.service standard and rename it to rescue.service 2010-10-29 16:28:29 +02:00
Lennart Poettering 42eacdadf5 units: introduce plymouth-start and plymouth-kexec, and move a few things back from basic to sysinit 2010-10-29 16:28:29 +02:00
Lennart Poettering c19a87330f fedora: get rid of sysinit.service 2010-10-29 16:28:29 +02:00
Bill Nottingham 6b2a56f04c Fedora: Link graphical-target.wants to the virtual display-manager.service, not the specific prefdm.service. 2010-10-29 16:28:28 +02:00
Bill Nottingham c980a27940 Fedora: Make systemunitdir/graphical.target.wants on 'make install'. 2010-10-29 16:28:28 +02:00
Bill Nottingham 73d35ff8e4 Fedora: further unit tweaks
1) Just ship rc-local as-is; don't worry about the 'local' name.
2) Don't install rc-local and prefdm to /etc ; just enable them globally for the system in /lib.
2010-10-29 16:28:28 +02:00
Bill Nottingham 0fbe72dc37 Fedora: Don't ship a init.d reboot symlink. 2010-10-29 16:28:28 +02:00
Lennart Poettering c4dcdb9f47 selinux: automatically load policy if the initrd hasn't done this for us yet 2010-10-27 05:47:02 +02:00
Lennart Poettering 472ff3d64a build-sys: fix 'make fedora' 2010-10-26 23:15:07 +02:00
Lennart Poettering 501fc174c2 systemctl: automatically spawn temporary password agent when we might need one 2010-10-26 05:29:39 +02:00
Lennart Poettering e0e1580aae ask-password: enable plymouth agent by default 2010-10-26 04:40:32 +02:00
Tom Gundersen ac52853d6d arch: remove obsolete sysinit.service
This is now split into smaller units and shipped with the downstream package.
2010-10-25 22:03:22 +02:00
Tom Gundersen 72de7bbf39 fsck: remove symlink from fsck.target to sysinit.target 2010-10-25 22:02:52 +02:00
Andrew Edmunds 858dae181b ubuntu: Treat Ubuntu as a distinct distro in configure.ac etc
Previously Ubuntu was treated as being equivalent to Debian, but the two
distributions require different behaviour in certain places.  This commit does
not change the behaviour of systemd on either distro but it creates a
framework for changes to be introduced by later commits.

The following previously meant "Target is Debian or Ubuntu".
    * configure option "--with-distro=debian"
    * C preprocessor symbol "TARGET_DEBIAN"
    * Automake conditional "TARGET_DEBIAN"
After this commit, all of the above are redefined to mean "Target is Debian"

The following are introduced to mean "Target is Ubuntu".
    * configure option "--with-distro=ubuntu"
    * C preprocessor symbol "TARGET_UBUNTU"
    * Automake conditional "TARGET_UBUNTU"

Most code written for Debian will also be applicable to Ubuntu. An extra
Automake conditional "TARGET_DEBIAN_OR_UBUNTU" is introduced to avoid
duplication of code that would otherwise occur.

This commit updates configure.ac, Makefile.am and distro-specific source files
in line with the above definitions.
2010-10-25 21:09:56 +02:00
Lennart Poettering 306a7fd82e units: activate wall agent automatically if something is dropped in /dev/.systemd/ask-password 2010-10-25 21:02:01 +02:00
Lennart Poettering ec863ba65a ask-password: add basic tty agent 2010-10-25 20:36:01 +02:00
Lennart Poettering d674a4ab52 ask-password: rename ask-password-agent to gnome-ask-password-agent 2010-10-22 16:38:14 +02:00
Lennart Poettering 52f319b293 syslog: enable kmsg bridge by default and enable syslogging for early boot services 2010-10-20 17:48:01 +02:00
Lennart Poettering 980d87505c install: enable quota/fsck-root/hwclock load by default 2010-10-20 16:16:14 +02:00
Lennart Poettering 335aa753fa units: add missing fsck units 2010-10-20 00:13:23 +02:00
Lennart Poettering a9e1f5ec36 fsck: properly hook in fsck everywhere, add special support for fsck'ing root dir 2010-10-19 23:45:18 +02:00
Lennart Poettering 3d20ed6d51 fsck: add initial version of fsck and quotacheck wrappers 2010-10-19 21:19:12 +02:00
Lennart Poettering 3b63d2d31d tmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite a bit 2010-10-18 22:38:41 +02:00
Lennart Poettering ddd941ed5c fedora: add compat unit for /sbin/halt.local 2010-10-14 03:59:49 +02:00
Lennart Poettering 9aac953a11 units: introduce final.target that can be used to plug units between shutdown.target and the final shutdown 2010-10-14 03:07:36 +02:00
Lennart Poettering 46574a5b4a units: get rid of distro-specific shutdown scripts, replace them by systemd-shutdown invocations 2010-10-14 02:58:37 +02:00
Lennart Poettering 85ed27f699 units: introduce kexec.service, kexec.target and exit.target 2010-10-14 00:57:52 +02:00
Kay Sievers 26e190cf87 move .h file from SOURCES to DIST to make vala autotools happy 2010-10-13 13:55:06 +02:00
Lennart Poettering 52661efd21 unit: add minimal condition checker for unit startup 2010-10-13 02:15:41 +02:00
Lennart Poettering 169c1bda80 service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a service
This should fix accounting for pam_limits and suchlike.

https://bugzilla.redhat.com/show_bug.cgi?id=636036
2010-10-08 16:07:50 +02:00
Kay Sievers 926e430133 systemd-shutdown: add umount.h to sources 2010-10-08 14:47:55 +02:00
Lennart Poettering 447be15505 systemd-user-sessions: install .service file and enable by default 2010-10-07 23:48:48 +02:00
Lennart Poettering e92787416c user-sessions: add minimal utility to kill user sessions that shall be called before destroying services on shutdown 2010-10-07 22:38:40 +02:00
Fabiano Fidencio b1b2a107d1 shutdown: Adding binary to shutdown the system
This functions are working as follows:
   - Send a SIGTERM to all processes that may be finished
   - Send a SIGKILL to all processes that still live and may be finished
   - Try to unmount all mount points
   - Try to remount read-only all mount points that can't be umounted
   - Umount all swap devices
   - Umount and detach all loopback devices
   - Call [poweroff|halt|reboot|kexec]

TODO:
   - Umount device-mapper.
   - Make log work. So far it is being useless as we do not parse
     /etc/systemd/system.conf, kernel command line but just
     environment, however we're executed by init and thus have no
     useful variables. Forcing it to target=kmsg/console and
     level=debug also does not produce any output, however writing to
     /dev/console does work (hack used during debug).
2010-10-07 19:23:46 +02:00