1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00
Commit Graph

1556 Commits

Author SHA1 Message Date
Lennart Poettering
491ad5dc66 mount: pull in fsck only in systemd instances 2010-10-13 17:18:36 +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
9fff8a1f16 mount: hook in q fsck@.service instance for all mount points with passno > 0 2010-10-13 03:57:04 +02:00
Lennart Poettering
560d8f2381 systemctl: warn if user enables unit with no installation instructions 2010-10-13 03:13:23 +02:00
Lennart Poettering
2cccbca4fd dbus: add introspection to midlevel paths 2010-10-13 03:03:31 +02:00
Lennart Poettering
37072578da lookup: look for dynamic throw-away units in /dev/.systemd/system 2010-10-13 02:34:21 +02:00
Lennart Poettering
f601daa701 inotify: properly handle multiple inotify events per read() 2010-10-13 02:34:00 +02:00
Lennart Poettering
52661efd21 unit: add minimal condition checker for unit startup 2010-10-13 02:15:41 +02:00
Lennart Poettering
e04aad61bb swap: major rework, use /sbin/swapon for setting up swaps, fix merging of aliased swap disks 2010-10-12 04:08:04 +02:00
Lennart Poettering
60b912f6b1 mount: minor cleanups 2010-10-12 04:08:04 +02:00
Lennart Poettering
538da63d53 systemctl: drop [] around date in status output 2010-10-12 04:08:04 +02:00
Lennart Poettering
4a9e2fffdf systemctl: show whether we follow somebody in 'status' output 2010-10-12 04:08:01 +02:00
Lennart Poettering
06ae4bfeb0 update fixme 2010-10-12 04:04:22 +02:00
Lennart Poettering
50caaedb2c service: introduce Restart=on-failure and Restart=on-abort 2010-10-08 18:34:54 +02:00
Lennart Poettering
c84ed68f30 units: enable utmp for serial gettys too 2010-10-08 18:22:44 +02:00
Lennart Poettering
c8f26f42e2 util: don't specifically check for the /dev/null major/minor, just check whether something is a char or block device 2010-10-08 18:22:28 +02:00
Lennart Poettering
6daf4f9001 unit: rename 'banned' load state to 'masked' 2010-10-08 18:21:52 +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
b9c0d4415b systemctl: fix 'systemctl enable getty@.service' 2010-10-08 03:09:25 +02:00
Lennart Poettering
f34277d911 service: increase default timeout for sysv scripts to 3min
For SysV services we cannot set the timeout inside the configuration
file. Hence let's pick a large timeout by default.

https://bugzilla.redhat.com/show_bug.cgi?id=635393
2010-10-08 02:49:44 +02:00
Lennart Poettering
40b8a33210 mount: properly handle NULL fstype
https://bugzilla.redhat.com/show_bug.cgi?id=636752
2010-10-08 02:43:08 +02:00
Lennart Poettering
00dc5d769a unit: introduce 'banned' load state for units symlinked to /dev/null 2010-10-08 02:31:36 +02:00
Lennart Poettering
c2b3f093d9 update fixme 2010-10-07 23:50:34 +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
4a8a5b2963 user-sessions: properly unlink both nologin files 2010-10-07 23:16: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
Lennart Poettering
83d8b7c179 shutdown: drop last referral to mp->read_only 2010-10-07 20:47:26 +02:00
Lennart Poettering
143b4e9b8d shutdown: drop redundant read_only bool var 2010-10-07 20:46:35 +02:00
Lennart Poettering
ef9ffbd806 shutdown: create /var/run/nologin instead of /etc/nologin which is supported since PAM 1.1.2 2010-10-07 20:46:02 +02:00
Lennart Poettering
3c14d26c47 util: unify implementations of freeze() 2010-10-07 19:34:56 +02:00
Kay Sievers
4bbf01f38a use common names: fixme -> TODO, bootstrap.sh -> autogen.sh 2010-10-07 19:30:54 +02:00
Fabiano Fidencio
b02b72cf0e README: Check for libudev-160, as in configure.ac 2010-10-07 19:23:56 +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
Fabiano Fidencio
e347837975 umount: Adding unmount functions to be used in shutdown
This functions will:
   - umount all mount points that aren't API
   - remount read-only all mount points that can't be umounted
   - umount all swap devices.
   - detach all loopback devices

TODO:
   - umount dms

Mountpoints are being read from /proc/self/mountinfo.
Swaps are being read from /proc/swaps.
Loop devices from /sys/class/block/loop*.
2010-10-07 19:23:26 +02:00
Fabiano Fidencio
3846aeeba2 util: Adding a strneq, to represent (!strncmp(a, b, n))
As we have streq to repesent (strcmp(a, b) == 0),I'm adding
strneq to represent (strncmp(a, b, n) == 0), that will be used
in umount.c (at least).
2010-10-07 19:22:11 +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
b7f426649b sd-daemon: in some places sizeof(sa_family_t) actually does make sense 2010-10-07 19:01:26 +02:00
Lennart Poettering
68ce1b7f2d build-sys: prepare v11 2010-10-07 15:39:28 +02:00
Lennart Poettering
db6f54595b update fixme 2010-10-07 03:56:11 +02:00
Lennart Poettering
f3c15784a1 units: make sure we run all early boot units before entering basic.target 2010-10-07 03:47:39 +02:00
Lennart Poettering
0ea969e6f2 update fixme 2010-10-07 03:34:14 +02:00
Lennart Poettering
0e098b15c7 util: never use sizeof(sa_family_t) when calculating sockaddr sizes 2010-10-07 02:34:17 +02:00
Lennart Poettering
e983b76024 manager: notify plymouth about progress if it is running 2010-10-06 03:55:49 +02:00
Lennart Poettering
273f54cdc2 unit: continue boot when exiting emergency/resuce shell 2010-10-06 02:44:15 +02:00
Lennart Poettering
71fad67514 systemctl: require correctly formed unit names when enabling units 2010-10-06 02:33:40 +02:00
Lennart Poettering
647f1fafb5 README: mention libcap dependency
https://bugs.freedesktop.org/show_bug.cgi?id=30060
2010-10-05 23:41:27 +02:00
Matthias Schiffer
0b021426fb timer: Add missing break in switch 2010-10-05 23:28:13 +02:00
Fabiano Fidêncio
1ddff895f3 mount: Don't stop the mountinfo parser if one line can't be read
The current behavior of the /proc/self/mountinfo parser
is to stop the parser on parse failures

I'm only changing this behavior to try the next line and adding
a warning if occurs a fail.
2010-10-05 22:26:28 +02:00
Lennart Poettering
1bc5d57ae3 notify: fix include properly 2010-10-05 21:52:37 +02:00