summaryrefslogtreecommitdiff
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* core: properly initialize kernel timestampLennart Poettering2013-01-081-0/+1
|
* systemd: use unit logging macrosZbigniew Jędrzejewski-Szmek2013-01-0611-335/+665
|
* journal: new logging macros to include UNIT=Zbigniew Jędrzejewski-Szmek2013-01-061-0/+7
| | | | | | | | | | | | | Adding UNIT= to log lines allows them to be shown in 'systemctl status' output, etc. A new set of macros and functions is added. This allows for less verbose notation than using log_struct() explicitly. The set of logging functions is expanded to take a pair of arguments (e.g. "UNIT=" and the RHS) which add an extra line to the structured log entry. This can be used to add macros which add a different identifier later on.
* core/path: modernize styleZbigniew Jędrzejewski-Szmek2013-01-061-4/+7
|
* core/mount: modernize styleZbigniew Jędrzejewski-Szmek2013-01-061-9/+18
|
* core/dbus-unit: modernize styleZbigniew Jędrzejewski-Szmek2013-01-061-52/+42
|
* core/manager: modernize styleZbigniew Jędrzejewski-Szmek2013-01-061-14/+25
|
* service: fixup after ifdef droppingZbigniew Jędrzejewski-Szmek2013-01-041-2/+2
| | | | Commit 88516c0 removed one line too much.
* build-sys: drop all distribution specfic checksLennart Poettering2013-01-042-8/+4
| | | | Yay, we now have a completely generic systemd. No distribution specific checks anymore!
* service: drop inserv.conf parsingLennart Poettering2013-01-041-69/+0
| | | | | This Suse specific configuration file should really be done in a generator that is shipped downstream by suse.
* service: drop the per-distro ifdefs in service.cLennart Poettering2013-01-041-24/+1
| | | | | They don't really hurt on other distros, and this allows us to ship the same code on all distros
* core: drop support for old per-distro configuration files for console, ↵Lennart Poettering2013-01-042-197/+10
| | | | | | hostname, locale, timezone This simplifies the upstream system code quite a bit. If downstream distributions want to maintain compatibility with their old configuration files, they are welcome to do so, but need to maintain this as patches downstream. The burden needs to be on the distributions to maintain differences here. Our suggestion however is to just convert the old configuration files on upgrade, as multiple distributions already do.
* Added globbing support to EnvironmentFilePekka Lundstrom2013-01-041-12/+41
| | | | | | | | This patch allows globbing to be used with EnvironmentFile option. Example: EnvironmentFile=/etc/foo.d/*.conf t. Pekka
* unit: add ConditionACPower=Lennart Poettering2012-12-313-0/+16
|
* shared: move fdset.c from core/ to shared/ since it is used by more than the ↵Lennart Poettering2012-12-232-285/+0
| | | | core now
* nspawn: try to orderly shutdown container when receiving SIGTERMLennart Poettering2012-12-221-1/+2
|
* socket: support socket activation of containersLennart Poettering2012-12-225-18/+91
|
* fdset: add calls for initializing fdset from socket activation fdsLennart Poettering2012-12-222-7/+88
|
* socket: properly serialize/desrialize mqueue fdsLennart Poettering2012-12-221-2/+26
|
* socket: Too many incoming connectionsDimitrios Apostolou2012-12-191-1/+1
| | | | | | | | | | Hello list, some socket activated service gave me the error message you can see on the subject, maybe systemd should be more verbose in that case. Thanks, Dimitris
* unit: add %U for uids in unitsDaniel Wallace2012-12-191-2/+15
|
* shutdown, umount: use verbs consistentlyMichal Schmidt2012-12-072-9/+9
| | | | | | | | Mounts are "unmounted". Swaps are "deactivated", not "turned off" nor "disabled". Loop and DM devices are "detached", not "deleted". Especially the deleting sounded a bit scary.
* shutdown, umount: logging improvementsMichal Schmidt2012-12-072-14/+21
| | | | | | | | | In bugreports about hangs during the late shutdown we are often missing important information - what were we trying to unmount/detach when it hung. Instead of printing what we successfully unmounted, print what we are going to unmount/detach. And add messages to mark the completion of categories (mount/swap/loop/DM).
* umount: fix check for DM changedMichal Schmidt2012-12-071-1/+1
| | | | | delete_dm() returns 0 on success. The check for "r > 0" was likely a copy&paste error from the loopback code where "r > 0" makes sense.
* shutdown: downgrade a warningMichal Schmidt2012-12-071-1/+1
| | | | | All messages of the kind "not all done, %d left" are log_info, except the one for DM devices. Make it info too.
* core: add catalog entry and MESSAGE_ID for overmountingZbigniew Jędrzejewski-Szmek2012-12-054-6/+19
|
* shutdown: fix typoHermann Gausterer2012-11-281-2/+2
|
* shutdown: don't consider umounting of / and /usr failedTom Gundersen2012-11-281-4/+3
| | | | | | | | | | | | | | | | | In the words of Homer: If you don't try, you can't fail. This is a revert of 9279749b84cc87c7830280b7895a48bed03c9429. It used to be necessary to consider the umounting failed to make sure / and /usr were remounted read-only, but that is no longer necessary as everything is now remounted read-only anyway. Moreover, this avoids a warning at shutdown saying a filesystem was not unmounted. As the umounting of / is never attempted there was no corresponding warning message saying which fs that failed. This caused some spurious bug-reports from concerned users. Cc: Michael Biebl <biebl@debian.org>
* shutdown: don't pivot to /run/initramfs if already thereTom Gundersen2012-11-281-1/+1
| | | | | This allows systemd-shutdown to be installed as /run/initramfs/shutdown and take care of the proper teardown of the rootfs.
* manager: fix build on 32bit systemsLennart Poettering2012-11-251-1/+6
|
* timer: recalculate next elapse for calendar timer units when the system ↵Lennart Poettering2012-11-254-12/+116
| | | | clock is changed
* build-sys: drop TARGET_UBUNTULennart Poettering2012-11-242-5/+5
| | | | | | TARGET_UBUNTU is effectively the same as TARGET_DEBIAN. Given the Ubuntu is unlikely to use systemd anytime soon there's no point in keeping this separate.
* timer: implement calendar time eventsLennart Poettering2012-11-2311-100/+206
|
* locale: modernizationsLennart Poettering2012-11-221-108/+109
|
* dbus: introduce _cleanup_dbus_error_free_Lennart Poettering2012-11-221-5/+3
|
* manager: introduce watch_init() initializer for watchesLennart Poettering2012-11-224-4/+15
|
* automount: modernizationsLennart Poettering2012-11-221-52/+64
|
* Add #ifdef guards around xattr usageHenrik Grindal Bakken2012-11-211-0/+6
| | | | | | This adds #ifdef HAVE_ATTR_XATTR_H guards around all usage of xattr. This unbreaks building with --disable-xattr when <attr/xattr.h> doesn't exist. <attr/xattr.h> and usage of fsetxattr() without
* build-sys: make loadable module support optionalTom Gundersen2012-11-201-0/+4
| | | | | kmod is unecessary if loadable module support is disabled in the kernel, so make the dependency optional.
* socket: improve error message when we cannot spawn the socket's service unitLennart Poettering2012-11-201-1/+1
|
* core/load-fragment: fix (potential) bad memory accessZbigniew Jędrzejewski-Szmek2012-11-191-5/+12
| | | | | | | strncmp() could be used with size bigger then the size of the string, because MAX was used instead of MIN. If failing, print just the offending mount flag.
* core/load-fragment: be more precise in error messagesZbigniew Jędrzejewski-Szmek2012-11-191-38/+31
| | | | | | | | | Whenever a message fails, mention the offending word, instead of just giving the whole line. If one bad word causes just this word to be rejected, print only the word. If one bad word causes the whole line to be rejected, print the whole line too. https://bugs.freedesktop.org/show_bug.cgi?id=56874
* rpm: udevadm is actually in bindirZbigniew Jędrzejewski-Szmek2012-11-161-2/+2
|
* rpm: update RPM macros to include definitions for more drop-in directories ↵Lennart Poettering2012-11-161-0/+17
| | | | | | | | | | and for reloading/rebuilding configuration More specifically this adds a number of macros that resolve to directories for udev rules, hwdb entries, tmpfiles and sysctl. Thsi also includes three new macros for rebuilding the hwbd/catalog index when a package drops in new files
* service: drop support for SysV scripts for the early bootLennart Poettering2012-11-161-54/+6
| | | | | | | | | | This remove distro-specific support for early-boot SysV init scripts. (And leaves support for normal SysV scripts untouched). If distributions wish to continue to allow early-boot SysV scripts in their distribution-specific way they should either maintain this patch downstream manually, or write a generator for them, or simply ship all those scripts with a .service wrapper.
* umount: always remount read-only before unmounting in final shutdown loopLennart Poettering2012-11-161-30/+27
|
* switch-root: try pivot_root() before overmounting /Lennart Poettering2012-11-161-1/+26
| | | | | | | | | | | | | | | | We should always try to umount the old root dir if possible, instead of overmounting it -- if that's possible. The initial ("first") kernel rootfs can never be umounted, hence for the usual nitrd case we never bothered using pivot_root() and hence with fully unmounting it. However, fedup now tranisitions twice during boot, and in that case it is highly desirable that the "second" root dir is entirely unmounted when we switch to the "third". This patch makes that possible. The pivot_root() needs a directory in the "third" root dir, to move the "second" root dir to. We use /mnt for that, under the assumption that this directory is likely to exist, and is not itself a mount point.
* shutdown: readd explicit sync() when shutting downLennart Poettering2012-11-162-0/+8
| | | | | | | | | As it turns out reboot() doesn't actually imply a file system sync, but only a disk sync. Accordingly, readd explicit sync() invocations immediately before we invoke reboot(). This is much less dramatic than it might sounds as we umount all disks/read-only remount them anyway before going down.
* dbus-manager: modernize styleZbigniew Jędrzejewski-Szmek2012-11-151-3/+6
|
* dbus-manager: fix a fatal dbus abort in bus_manager_message_handler()Eelco Dolstra2012-11-151-1/+0
| | | | | | | | | | If ListUnitFiles fails, or an OOM occurs, then dbus_message_unref() will be called twice on "reply", causing systemd to crash. So remove the call to dbus_message_unref(); it is unnecessary because of the cleanup attribute on "reply". [zj: modified to leave one dbus_message_unref() alone, per Colin Walters' comment.]