chiark / gitweb /
units: remove service sysv_path variable and replace it by generic unit_path
[elogind.git] / src / core / load-fragment.c
index 3bc053341c5a8bdac65e4e4bc00590b51f7e401d..d2267722dd43cf991e3764055d9676c8d5f3078d 100644 (file)
@@ -2320,6 +2320,13 @@ static int load_from_path(Unit *u, const char *path) {
 
         u->fragment_mtime = timespec_load(&st.st_mtim);
 
+        if (u->source_path) {
+                if (stat(u->source_path, &st) >= 0)
+                        u->source_mtime = timespec_load(&st.st_mtim);
+                else
+                        u->source_mtime = 0;
+        }
+
         r = 0;
 
 finish: