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

26 Commits

Author SHA1 Message Date
Michal Schmidt
67575eef76 path: fix watching the root directory
If you have a path unit with:
  DirectoryNotEmpty=/foo
and "/foo" does not exist, creating it later escapes the attention of systemd.

When adding watches for parent directories, systemd never adds one for the root
directory. It attempts to add a watch for an empty string instead, which fails.

If the path is "/", we must not trim the slash.
2010-12-01 16:39:58 +01:00
Lennart Poettering
4313fc2ceb path: don't mention too many inotify msgs 2010-11-16 03:27:00 +01:00
Lennart Poettering
62347bc24a path: properly free PathSpec structs 2010-11-15 22:13:26 +01:00
Lennart Poettering
36af55d997 unit: introduce ConditionDirectoryNotEmpty= 2010-11-15 22:13:25 +01:00
Lennart Poettering
672028dc4e path: avoid immediate restarting of units triggered by paths if nothing actually changed on disk 2010-11-15 00:49:21 +01:00
Lennart Poettering
782195a3c3 path: always look for IN_ATTRIB since deletion is signalled that way 2010-11-15 00:47:29 +01:00
Lennart Poettering
2a77d31df9 units: order units by default before appropriate targets in case they are pulled indirectly 2010-10-29 16:28:29 +02:00
Lennart Poettering
ead8e4788e unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as weaker counterpart of Conflicts=, similar to Wants= vs. Requires= 2010-10-29 16:28:27 +02:00
Lennart Poettering
f601daa701 inotify: properly handle multiple inotify events per read() 2010-10-13 02:34:00 +02:00
Lennart Poettering
00dc5d769a unit: introduce 'banned' load state for units symlinked to /dev/null 2010-10-08 02:31:36 +02:00
Matthew Miller
fdf20a3160 manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
Lennart Poettering
c4e2ceae94 dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
Lennart Poettering
d6c9574fb5 emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
Lennart Poettering
e364ad0628 clang: fix numerous little issues found with clang-analyzer 2010-08-11 22:04:25 +02:00
Lennart Poettering
69dd2852bb manager: when two pending jobs conflict, keep the one that "conflicts", remove the one that is "conflicted"
This gives the writer of units control which unit is kept and which is
stopped when two units conflict.
2010-08-09 22:32:30 +02:00
Lennart Poettering
5632e3743d systemctl: introduce reset-maintenance command 2010-07-19 04:08:07 +02:00
Lennart Poettering
6c155fe3d0 path,timer: order units after sysinit by default 2010-07-16 18:57:21 +02:00
Lennart Poettering
ba3e67a785 socket: when the socket is supposed to stop, don't accept any connections anymore 2010-07-13 00:27:27 +02:00
Lennart Poettering
398ef8ba02 dbus: make errors reported via D-Bus more useful 2010-07-08 02:43:18 +02:00
Lennart Poettering
a40eb73224 unit: add DefaultDependencies= setting
In order to simplify writing of unit files introduce default
dependencies that are added to all units unless explictly disabled in a
unit. This option can be switched off for select units that are involved
in early boot-up ot late system shutdown,

This should simplify service files for most normal daemons, but breaks
existing service files for software involved in early boot (notably
udev), which need to be updated for a DefaultDependencies=no setting)
2010-07-03 19:48:33 +02:00
Lennart Poettering
2c966c038d unit: simplify things a little by introducing API to add two dependencies in one step 2010-07-03 19:46:38 +02:00
Lennart Poettering
032ff4afc9 unit: shorten active state enums to make systemctl output nicer 2010-07-01 03:34:15 +02:00
Lennart Poettering
6124958c7b unit: add new abstracted maintenance state for units 2010-07-01 00:31:53 +02:00
Lennart Poettering
4cd1fbcc06 unit: get rid of various unnecessary casts 2010-06-19 16:55:49 +02:00
Lennart Poettering
18c78fb1af typo: the correct spelling is maintenance not maintainance 2010-06-16 14:01:55 +02:00
Lennart Poettering
01f78473b1 path: add .path unit type for monitoring files 2010-05-24 05:25:33 +02:00