Commit graph

214 commits

Author SHA1 Message Date
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
Kay Sievers d3f09cf396 units: always enable random-seed, module-load, vconsole 2010-09-21 21:25:44 +02:00
Kay Sievers b15124f166 tmpwatch: install the unit files 2010-09-21 15:07:43 +02:00
Lennart Poettering f0a73e245c units: add default tmpwatch units 2010-09-21 03:38:32 +02:00
Gustavo Sverzut Barbieri 9841e8e3d3 gentoo: vconsole-setup support.
This patch is a bit bigger than expected since Gentoo being
non-standard in some places.

 1. it is installing binaries at /usr/bin instead of /bin.

 2. it is using CamelCase names for consolefonts.

 3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont
    "-u" options, but do not disable the actual kernel default_utf8
    from vt module.
2010-09-21 00:43:16 +02:00
Lennart Poettering efb3237ee6 ask-password: popup notification when we ask for a password 2010-09-17 02:32:48 +02:00
Lennart Poettering 490aed5849 ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
Lennart Poettering 72bca11ba2 locale: initialize locale from /etc/locale by default 2010-09-16 01:57:42 +02:00
Lennart Poettering 97c4a07df9 vconsole: add new utility to initialize the virtual console 2010-09-16 00:36:41 +02:00
Lennart Poettering a2ff477f67 units: add generic description for http-daemon.target 2010-09-14 00:22:47 +02:00
Michael Biebl e082d6c8d8 units: On Debian Runlevel 2, 3, 4 and 5 are multi-user
Patch by Tollef Fog Heen <tfheen@err.no>
Extended to re-create the runlevel5.target symlink by Michael Biebl <biebl@debian.org>
2010-09-08 02:14:58 +02:00
Michael Biebl a5dc0a45fe units: add umount unit files for Debian
Add unit files to call

/etc/init.d/umountnfs.sh stop (network file systems)
/etc/init.d/umountfs stop     (local file systems)
/etc/init.d/umountroot stop   ("/" file system)

in the right order and hook them up in the umount.target so they are run
on shutdown and reboot.
2010-09-08 02:12:38 +02:00
Michael Biebl f10814d9e0 units: Provide separate fsck.target for Debian
On Debian sysinit is not a single script but a separate runlevel.
Split of fsck.target into separate unit file as otherwise we get an
unbreakable cycle on shutdown/reboot.
2010-09-06 03:12:44 +02:00
Michael Biebl ad206afcb9 units: Add halt, killall, poweroff and reboot unit files for Debian 2010-09-06 03:12:28 +02:00
Lennart Poettering 53eff0c762 build-sys: fix fedpkg git path 2010-09-03 05:39:22 +02:00
Lennart Poettering b2bb3dbed9 console: rework automatic getty on kernel console logic again
It is essential that the gettys are proper dependencies from
getty.target so that they aren't killed and immediately restarted on
runlevel changes. Hence rework the logic to implicitly add console
gettys to getty.target as dependencies.

This also adds an automatic hvc console for virtualizers.

https://bugzilla.redhat.com/show_bug.cgi?id=501720
2010-08-30 23:03:58 +02:00
Lennart Poettering 77d5f105bf cgroup: mount cgroup file systems to /sys/fs/cgroup instead of /cgroup
This requires the /sys/fs/cgroup to exist. Current git kernels have
this, released kernels need a backport of a single patch.
2010-08-25 04:58:24 +02:00