summaryrefslogtreecommitdiff
path: root/manager.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-10 17:53:17 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-10 18:00:34 +0200
commite537352b9bfffe6f6286483bff2c7601c78407e3 (patch)
treebe1a46883f8a1bc6b666bd680adda2d309979c15 /manager.h
parent108736d0d34d7b74a61a6ac7b99d4d4fec81ce09 (diff)
mount: implement mounting properly
This also includes code that writes utmp/wtmp records when applicable, making use the mount infrastructure to detct when those files are accessible. Finally, this also introduces a --dump-configuration-items switch.
Diffstat (limited to 'manager.h')
-rw-r--r--manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/manager.h b/manager.h
index 5b72defe03..3ae8126f90 100644
--- a/manager.h
+++ b/manager.h
@@ -145,6 +145,8 @@ struct Manager {
bool request_api_bus_dispatch:1;
bool request_system_bus_dispatch:1;
+ bool utmp_reboot_written:1;
+
Hashmap *watch_pids; /* pid => Unit object n:1 */
int epoll_fd;
@@ -172,6 +174,8 @@ struct Manager {
Hashmap *cgroup_bondings; /* path string => CGroupBonding object 1:n */
char *cgroup_controller;
char *cgroup_hierarchy;
+
+ usec_t boot_timestamp;
};
int manager_new(ManagerRunningAs running_as, Manager **m);
@@ -204,4 +208,8 @@ int manager_loop(Manager *m);
const char *manager_running_as_to_string(ManagerRunningAs i);
ManagerRunningAs manager_running_as_from_string(const char *s);
+void manager_write_utmp_reboot(Manager *m);
+
+void manager_write_utmp_runlevel(Manager *m, Unit *t);
+
#endif