1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
Commit Graph

367 Commits

Author SHA1 Message Date
Lennart Poettering
82e487c56d unit: introduce ConditionFileIsExecutable= and use it where we check for a binary we'll spawn 2011-07-12 04:25:02 +02:00
Frederic Crozat
a268a6a38f units: add units for boot.local/halt.local on SUSE distributions. 2011-07-12 00:15:35 +02:00
Lennart Poettering
26b8e979c8 units: enable dev-hugepages.automount and dev-mqueue.automount only when enabled in kernel 2011-07-02 01:00:00 +02:00
Lennart Poettering
bde7f90721 logind: temporarily hack right user bus address into unit file 2011-07-01 22:36:15 +02:00
Lennart Poettering
d42d27ead9 logind: add service for per-user shared systemd daemon 2011-06-30 02:18:01 +02:00
Lennart Poettering
d0a522eb31 logind: autospawn gettys when necessary 2011-06-28 00:26:10 +02:00
Bill Nottingham
1616acbba4 units: Use /etc/rc.d/rc.local as the path to rc.local in Fedora.
/etc/rc.local is a symlink.
2011-06-27 14:25:33 +02:00
Lennart Poettering
3084a7c453 logind: add more necessary caps to the service 2011-06-24 23:52:02 +02:00
Lennart Poettering
094062918c logind: fix set of capabilities 2011-06-24 22:55:51 +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
Tom Gundersen
54763e1266 remote-fs.target: do not order after network.target
remote-fs.target is ordered after the {auto,}mount units. In case of automount
we do not want to wait for the network to come up before proceeding. In case
of a regular mount unit, the unit will be ordered after network.target
so the behavior is unchanged.

This speeds up boot quite a bit for me when having some services needing
NetworkManager-wait-online.service, and having my home partition on nfs
under an automountpoint.
2011-06-14 17:30:46 +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
Lennart Poettering
6ea832a207 exec: hangup/reset/deallocate VTs in gettys
Explicitly disconnect all clients from a VT when a getty starts/finishes
(requires TIOCVHANGUP, available in 2.6.29).

Explicitly deallocate getty VTs in order to flush scrollback buffer.

Explicitly reset terminals to a defined state before spawning getty.
2011-05-18 01:07:36 +02:00
Miklos Vajna
34a852e6f9 units: Enable plymouth for Frugalware 2011-05-09 22:41:02 +02:00
Lennart Poettering
7ec75dc70f units: enable automount units only if the kernel supports them 2011-05-02 17:43:18 +02:00
Kay Sievers
adf70c5e4e binfmt, modules-load, sysctl, tmpfiles: add missing ConditionDirectoryNotEmpty= 2011-04-30 23:08:15 +02:00
Lennart Poettering
24a73f5157 plymouth: introduce plymouth.enable=0 kernel command line switch 2011-04-30 04:23:36 +02:00
Lennart Poettering
9534ce5485 units: set capability bounding set for syslog services 2011-04-20 03:34:58 +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
f67c572a7d fsck: don't fsck against basic.target in order to properly allow automount /home 2011-04-20 00:44:37 +02:00
Lennart Poettering
2286fdf7c5 hostnamed: drop all caps but CAP_SYS_ADMIN 2011-04-19 06:07:29 +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
25e3655a00 units: wording fix 2011-04-16 02:03:35 +02:00
Lennart Poettering
42549a5a6a units: order quotacheck after remount-rootfs 2011-04-16 02:03:35 +02:00
Lennart Poettering
c8f4d7642b manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger around when isolating 2011-04-16 02:03:34 +02:00
Lennart Poettering
cfcab43508 units: never pull in sysinit from utmp, so that we can shutdown from emergency mode without pulling in sysinit 2011-04-16 02:03:34 +02:00
Lennart Poettering
57bd42336e units: require syslog.socket from the logger because we simply fail if we don't have it 2011-04-16 02:03:33 +02:00
Lennart Poettering
530add9d62 logger: adjust socket description to match service 2011-04-16 02:03:33 +02:00
Lennart Poettering
1b5e66919d units: set stdout of kmsg syslogd to /dev/null 2011-04-16 02:03:33 +02:00
Lennart Poettering
7f62e3774c units: add --no-block when starting normal service after shell exited 2011-04-16 02:03:33 +02:00
Lennart Poettering
090bf7cbc4 units: isolate emergency.target instead of emergency.service when we fail to mount all file systems 2011-04-13 04:35:07 +02:00
Lennart Poettering
b9a2a36b51 local-fs: invoke emergency.service mounting at boot fails 2011-04-10 01:42:48 +02:00
Lennart Poettering
0e456f9781 path: optionally, create watched directories in .path units 2011-04-10 01:30:14 +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
33bd08a97a units: call the logger a bridge too 2011-04-05 23:22:35 +02:00
Lennart Poettering
f1159d7c78 logger: name socket like service 2011-04-04 15:27:35 +02:00
Lennart Poettering
30d6500340 units: improve logger descriptions 2011-04-04 04:06:24 +02:00
Lennart Poettering
151b190e79 binfmt: add binfmt tool to set up binfmt_misc at boot 2011-04-04 03:36:42 +02:00
Lennart Poettering
99ee2e9295 initctl: /dev/initctl is a named pipe, not a socket 2011-04-03 22:15:14 +02:00
Lennart Poettering
9408a2d295 plymouth: use PID file to detect whether ply is running 2011-03-31 04:26:40 +02:00
Lennart Poettering
39366bacda plymouth: don't explicitly enable status message when plymouth is up
https://bugzilla.redhat.com/show_bug.cgi?id=676302

systemd now watches /run/initramfs/plymouth and generates messages
exactly when that file exists. Hence we don't need the sending of the
signals anymore.
2011-03-30 03:03:35 +02:00
Lennart Poettering
cd25cce98f exec: drop process group kill mode since it has little use and confuses the user 2011-03-29 23:31:38 +02:00
Lennart Poettering
1ead1cad4b man: really fix all LC_MESSAGE to LC_MESSAGES
https://bugs.freedesktop.org/show_bug.cgi?id=35534
2011-03-29 12:12:31 +02:00
William Jon McCann
c20deda415 plymouth: Remove the calls to plymouth message
* messages aren't translated
 * console text is ugly
 * they are jargonny
 * they really aren't needed

https://bugs.freedesktop.org/show_bug.cgi?id=35711
2011-03-29 01:21:54 +02:00
Kay Sievers
2b583ce657 use /run instead of /dev/.run
Instead of the /dev/.run trick we have currently implemented, we decided
to move the early-boot runtime dir to /run.

An existing /var/run directory is bind-mounted to /run. If /var/run is
already a symlink, no action is taken.

An existing /var/lock directory is bind-mounted to /run/lock.
If /var/lock is already a symlink, no action is taken.

To implement the directory vs. symlink logic, we have a:
  ConditionPathIsDirectory=
now, which is used in the mount units.

Skipped mount unit in case of symlink:
  $ systemctl status var-run.mount
  var-run.mount - Runtime Directory
    Loaded: loaded (/lib/systemd/system/var-run.mount)
    Active: inactive (dead)
            start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago
     Where: /var/run
      What: /run
    CGroup: name=systemd:/system/var-run.mount

The systemd rpm needs to make sure to add something like:
  %pre
  mkdir -p -m0755 /run >/dev/null 2>&1 || :
or it needs to be added to filesystem.rpm.

Udev -git already uses /run if that exists, and is writable at bootup.
Otherwise it falls back to the current /dev/.udev.

Dracut and plymouth need to be adopted to switch from /dev/.run to run
too.

Cheers,
Kay
2011-03-28 23:00:00 +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
a0e155d440 units: pull in syslog.target from syslog.socket 2011-03-18 05:17:02 +01:00
Lennart Poettering
d94ac66d32 units: don't ever pull in SysV targets from other SysV targets 2011-03-18 05:13:06 +01:00
Lennart Poettering
1c7c17ea61 units: document that some targets exists only for compat with SysV 2011-03-18 05:12:34 +01: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
97df13c0ac units: get rid of runlevel Names=, the symlinks in /lib/systemd/system are much more useful 2011-03-18 04:53:31 +01:00
Lennart Poettering
997a624029 units: get rid of empty units/suse/ subdir 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
Miklos Vajna
196e3fa74a Add Frugalware display-manager service 2011-03-16 03:53:55 +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
91b22f21f3 core: move abstract namespace sockets to /dev/.run
Now that we have /dev/.run there's no need to use abstract namespace
sockets. So, let's move things to /dev/.run, to make things more easily
discoverable and improve compat with chroot() and fs namespacing.
2011-03-14 03:12:25 +01:00
Lennart Poettering
7d640cdf66 units: move the last flag files to /dev/.run 2011-03-11 01:06:53 +01:00
Lennart Poettering
b925e72633 dev: use /dev/.run/systemd as runtime directory, instead of /dev/.systemd 2011-03-09 22:45:47 +01:00
Lennart Poettering
cc5524ecc6 mount: use /dev/.run as an early boot alias for /var/run
During early boot, mount a tmpfs to /dev/.run and then bind mount it to
/var/run as soon as /var is available.

This makes it possible for programs involved in early boot to put
runtime data in /dev/.run which later on will show up in /var/run like
any other.

This can be used to solve the early-boot D-Bus problem: D-Bus may start
up with its socket bound to /dev/.run/dbus/system_bus_socket and after
/var it will also be available under the traditional name
/var/run/dbus/system_bus_socket.

This also is intended to be used as a better place for systemd, mount,
mdadm, blkid, plymouth, bootchart and dracut runtime data, which is
currently stored in various places in /dev/.xxx.
2011-03-09 02:51:45 +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
267632f0ab unit: distuingish mandatory from triggering conditions 2011-03-08 03:04:47 +01:00
Lennart Poettering
c4b5a3d66f mount: make /media a tmpfs 2011-03-07 17:38:15 +01:00
53bdb7c186 build-sys: update ALTLinux support
Please apply patch for update ALTLinux support.
2011-02-28 22:10:13 +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
be12dd0cb8 rescue: terminate plymouth entirely when going into rescue mode 2011-02-23 18:42:08 +01:00
Lennart Poettering
3642d1c988 plymouth: don't wait forever for plymouth in case it is stuck 2011-02-22 18:51:44 +01:00
Lennart Poettering
b7ff1e47da plymouth: ensure we start not a single getty before plymouth is gone because we never know which ttys plymouth still controls 2011-02-21 23:55:17 +01:00
Lennart Poettering
80f7378c5d unit: don't timeout fsck 2011-02-20 20:27:59 +01:00
Lennart Poettering
783bd61209 units: order fsck@.service before basic.target instead of local-fs.target to relax things a little 2011-02-18 12:39:30 +01:00
Lennart Poettering
70db8e3a0b rescue: make 'systemctl default' fail if there is already something running when the shell exited 2011-02-16 19:34:38 +01:00
Lennart Poettering
0a494f1ff3 exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
Lennart Poettering
48774cf60f fsck: output to /dev/console by default in addition to syslog 2011-02-15 01:28:31 +01:00
Lennart Poettering
7a57b332d0 fsck: skip root fsck if dracut already did it 2011-02-14 11:42:47 +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
Lennart Poettering
e1b2b49465 systemd: show status when run with plymouth, and don't start plymouth a second time when it is already running 2011-02-09 14:17:52 +01:00
Jeff Mahoney
cd3f8b7ddb plymouth: move plymouth out of TARGET_FEDORA 2011-02-08 18:47:32 +01:00
a338bab5d0 build-sys: initial support ALTLinux
Hi all!
I added basic support for ALTLinux.
Please see patch or
http://git.altlinux.org/people/shaba/packages/systemd.git?p=systemd.git;a=shortlog;h=refs/heads/altlinux
Thanks.
2011-02-08 12:52:06 +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
c32e0c40f7 serial-getty: invoking /sbin/securetty is no longer necessary since pam_securetty can now look for console= in /proc/cmdline 2011-01-18 23:51:06 +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
1640944a84 getty: unset locale before execution
On the console indian characters cannot be displayed, hence it is
advisable to disable indian locales on the console, which most
distributions traditionally did from a shell fragment executed post
login. If getty gets started with locale settings passed it would itself
however be translated without the no-indian-on-console fixup applied.

Hence, for now don't pass any locale settings to getty/login, and thus
rely on the classic post-login script fragment to set and fix the
locale.

Eventually we probably want to drop this again since the system locale
should be read and set at one place, and not at multiple, and that one
place should be PID 1.

https://bugzilla.redhat.com/show_bug.cgi?id=663900
2011-01-06 20:38:06 +01:00
Lennart Poettering
60b4f27794 serial: use TERM=vt100 instead of TERM=vt100-nav
TERM=vt100-nav was necessary for compat with some ppc hvc devices, a
long time ago. Unfortunately vt100-nav terminfo is not installed by
default on most distros, hence change the default to v100 which is
available universally and still should be a relatively safe and
conservative default.

Should it turn out that vt100 is not really the best choice we can
revert this change again and then ask distros to move vt100-nav into
their default install.
2011-01-04 21:45:52 +01:00
Miklos Vajna
01c3a63e17 Fix misspellings in os-release manpage and hwclock-load.service 2010-12-20 16:30:59 +01:00
Miklos Vajna
6279e1f014 Frugalware: start gettys after local.service 2010-12-16 15:02:19 +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
d4a80c1243 units: simplify shutdown scripts 2010-11-23 01:37:18 +01:00
Lennart Poettering
e096bf2f95 units: move a couple of units from base.target to sysinit.target 2010-11-19 16:24:21 +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
c1d6bc0e53 units: make sure prefdm is killed first, user sessions second on shutdown 2010-11-18 02:45:04 +01:00
Lennart Poettering
2f8cd170ae cryptsetup: automatically order crypt partitions before cryptsetup.target 2010-11-18 02:16:36 +01:00
Lennart Poettering
eb8d87c125 units: order hwclock after readahead 2010-11-16 03:32:54 +01:00
Lennart Poettering
180f90cb13 units: set TERM for gettys again, since they acquire a TTY on their own 2010-11-16 01:54:07 +01:00