chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log: bump up a number of log messages so that they are shown even if debug logging...
[elogind.git]
/
src
/
path.c
diff --git
a/src/path.c
b/src/path.c
index 56936fd673fd76d427c18eb8fdce7f2105279be5..30d946d788a66cb58bbd4b971c10f456fa78c0f4 100644
(file)
--- a/
src/path.c
+++ b/
src/path.c
@@
-29,6
+29,7
@@
#include "unit-name.h"
#include "path.h"
#include "dbus-path.h"
#include "unit-name.h"
#include "path.h"
#include "dbus-path.h"
+#include "special.h"
static const UnitActiveState state_translation_table[_PATH_STATE_MAX] = {
[PATH_DEAD] = UNIT_INACTIVE,
static const UnitActiveState state_translation_table[_PATH_STATE_MAX] = {
[PATH_DEAD] = UNIT_INACTIVE,
@@
-120,6
+121,11
@@
static int path_load(Unit *u) {
if ((r = path_add_mount_links(p)) < 0)
return r;
if ((r = path_add_mount_links(p)) < 0)
return r;
+
+ /* Path units shouldn't stay around on shutdown */
+ if (p->meta.default_dependencies)
+ if ((r = unit_add_two_dependencies_by_name(u, UNIT_BEFORE, UNIT_CONFLICTS, SPECIAL_SHUTDOWN_TARGET, NULL, true)) < 0)
+ return r;
}
return path_verify(p);
}
return path_verify(p);