summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-10-07shutdown: Adding binary to shutdown the systemFabiano Fidencio
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-07umount: Adding unmount functions to be used in shutdownFabiano Fidencio
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-07util: Adding a strneq, to represent (!strncmp(a, b, n))Fabiano Fidencio
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-07sd-daemon: in some places sizeof(sa_family_t) actually does make senseLennart Poettering
2010-10-07util: never use sizeof(sa_family_t) when calculating sockaddr sizesLennart Poettering
2010-10-06manager: notify plymouth about progress if it is runningLennart Poettering
2010-10-06systemctl: require correctly formed unit names when enabling unitsLennart Poettering
2010-10-05timer: Add missing break in switchMatthias Schiffer
2010-10-05mount: Don't stop the mountinfo parser if one line can't be readFabiano Fidêncio
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-05notify: fix include properlyLennart Poettering
2010-10-05fix typo: s/seperat/separat/gDave Reisner
2010-10-05readahead: fix printf format stringLennart Poettering
2010-10-05notify: add missing includeLennart Poettering
2010-10-05unit-name: fix unit name escapingMike Kelly
we want to do a bitwise shift, not a greater-than comparision
2010-10-05service: rename settings for Restart= from 'restart-always' to 'always' and ↵Lennart Poettering
similar
2010-10-05sd-daemon: split off sd_readahead() since it is not a feature of systemd ↵Lennart Poettering
itself but of an auxiliary tool
2010-10-05mount: sort network mounts after network.target by defaultLennart Poettering
2010-10-05socket: make sockets to pass to a service configurableLennart Poettering
2010-10-05socket: make service to start on incoming traffic configurableLennart Poettering
2010-10-05readahead: ignore deleted filesLennart Poettering
2010-09-30readahead: minor 32bit fixesLennart Poettering
2010-09-29tmpfiles: fix typo in commentAndreas Jaeger
2010-09-29readahead: preload pack fileLennart Poettering
2010-09-29readahead: make sure /dev/.systemd/readahead existsLennart Poettering
2010-09-28parse_env_file() - return empty value strings like FOO="" as NULL valueKay Sievers
2010-09-28tmpfiles: move dir to /etc/tempfiles.d/Lennart Poettering
2010-09-28tmpfiles: return sensible error codeLennart Poettering
2010-09-28tmpfiles: rename tempfiles to tmpfiles since this isn't windowsLennart Poettering
2010-09-28list: Fixing typo in LIST_FIND_HEADFabiano Fidencio
Just removing a parenthesis
2010-09-28readahead: ignore replay events when collectingLennart Poettering
2010-09-28service: first lookup LSB facility names in tables, only then suppress ↵Lennart Poettering
self-provides
2010-09-28readahead: fix SSD checkLennart Poettering
2010-09-28service: Don't crash because of double free when Arch services are disabled ↵Matthias Schiffer
in rc.conf
2010-09-28service: filter out empty LSB description stringsLennart Poettering
2010-09-28service: when resolving sysv names drop leading $Lennart Poettering
2010-09-28modules-load: use /etc/modules-load.d/?*.confKay Sievers
2010-09-28use .conf for new config files: locale, vconsole, modules.dKay Sievers
2010-09-28vconsole-setup: ignore empty strings like FOO="", imported from config filesKay Sievers
2010-09-28tempfiles: add little utility for creating volatile files/dirs in tmpfs ↵Lennart Poettering
hierarchies
2010-09-28mount: properly handle bind mountsLennart Poettering
2010-09-28service: shortcut sysv provides on ourselvesLennart Poettering
2010-09-28service: ignore sysv $null serviceLennart Poettering
2010-09-27fix spelling of 'unneeded' at various placesLennart Poettering
2010-09-27service: don't create sysv order deps on merged unitsLennart Poettering
2010-09-27load-fragment: reset fragment_path if we couldn't find a unit file for itLennart Poettering
2010-09-27readahead: avoid collisions with the NULL pointerLennart Poettering
2010-09-27Revert "hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST"Lennart Poettering
This reverts commit 66d9b3b59551a33398b2201662af5c8c17a367c9. If we check for i == ITERATOR_LAST we exit the loop one entry before the end. Instead we should return if e is NULL.
2010-09-27Need to use #elif defined(DEBIAN) here...Michael Biebl
This fixes a c&p error in 7472744bf9eddc7137f03233e49fa780793d5fc0
2010-09-27debian: add locale compat supportMichael Biebl
Read LANG from /etc/default/locale.
2010-09-27readahead: properly initialize variableLennart Poettering