1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 18:55:09 +03:00
Commit Graph

230 Commits

Author SHA1 Message Date
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
Lucas De Marchi
c226fa4196 vconsole-setup: fix path on Arch
Arch uses the same paths and default font of gentoo. Previously,
systemd-vconsole-setup was failing with the following message:

systemd-vconsole-setup[59]: /bin/setfont failed with error code 1.
2010-10-07 19:13:54 +02:00
Lennart Poettering
71fad67514 systemctl: require correctly formed unit names when enabling units 2010-10-06 02:33:40 +02:00
Lennart Poettering
e62e6670f7 man: document readahdea split-off 2010-10-05 20:44:37 +02:00
Lennart Poettering
d0b4880988 sd-daemon: split off sd_readahead() since it is not a feature of systemd itself but of an auxiliary tool 2010-10-05 20:20:38 +02:00
Lennart Poettering
c7b508592b units: properly terminate readahead collection 10s after boot 2010-09-29 02:55:36 +02:00
Lennart Poettering
93ca9714e6 units: get rid of special setup services for /var/run, /var/lock and /tmp, and rely on tmpfiles.d/ instead 2010-09-29 01:39:31 +02:00
Lennart Poettering
afbf835326 units: ship unit file for systemd-tmpfiles by default 2010-09-29 01:39:31 +02:00
Lennart Poettering
34c8deaae1 tmpfiles: install default tmpfiles configuration 2010-09-28 22:32:53 +02:00
Lennart Poettering
bfaf42d22b tmpfiles: rename tempfiles to tmpfiles since this isn't windows 2010-09-28 22:11:27 +02:00
Lennart Poettering
30b89475ee build-sys: add missing header files to tarball 2010-09-28 18:49:02 +02:00
Lennart Poettering
4bb2357f77 units: add readahead unit files 2010-09-28 03:44:22 +02:00
Lennart Poettering
c0a1b6e926 units: enable mount units by default and hook binary units into base.target instead of sysinit.target, leaving the latter for sysv compatibility 2010-09-28 03:18:23 +02:00
Lennart Poettering
5008d5815a tempfiles: add little utility for creating volatile files/dirs in tmpfs hierarchies 2010-09-28 02:34:02 +02:00
Lennart Poettering
6624768c9c readahead: add interface to sd-daemon.[ch] to control readahead 2010-09-26 15:50:14 +02:00
Lennart Poettering
22be093ffb readahead: implement minimal readahead logic based on fanotify(), mincore() and readahead() 2010-09-23 15:02:13 +02:00
Kay Sievers
6efb256c1a units: add tmp.service to file list 2010-09-22 13:51:05 +02:00
Kay Sievers
3e24da51b9 units: enable getty.target by default 2010-09-22 13:31:53 +02:00
Kay Sievers
45cf971672 units: move ctrl-alt-delete, default getty targets from /etc to /lib 2010-09-22 12:49:17 +02:00
Kay Sievers
6ebf598c40 units: hwclock support for non-UTC must not be in the default 2010-09-22 12:00:07 +02:00
Kay Sievers
65ae3821ff units: enable var-run + var-lock service by default 2010-09-21 21:43:40 +02:00
Kay Sievers
f9ccc72499 units: enable sysctl by default 2010-09-21 21:38:21 +02:00
Kay Sievers
7376cffd56 units: enable hwclock by default 2010-09-21 21:33:24 +02:00