mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
plugins: fix possible ordering bug; pidfile --> bootmisc
The recently updated pidfile plugin now also watches the subdirectories in /var/run, but for that to work it must witness the creation of these subdirectories. The bootmisc plugin creates several, e.g., /run/quagga/ in which PID files like zebra.pid are created. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
4a83c95d2b
commit
d068684154
2 files changed
+17
-4
No files matched your search
+4
-1
@@ -116,8 +116,10 @@ static void setup(void *arg)
|
||||
_d("System with new /run tmpfs ...");
|
||||
makedir("/run/lock", 1777);
|
||||
symlink("/run/lock", "/var/lock");
|
||||
symlink("/run", "/var/run");
|
||||
symlink("/dev/shm", "/run/shm");
|
||||
|
||||
/* compat only, should really be set up by OS/dist */
|
||||
symlink("/run", "/var/run");
|
||||
} else {
|
||||
makedir("/var/lock", 1777);
|
||||
makedir("/var/run", 0755);
|
||||
@@ -191,6 +193,7 @@ static plugin_t plugin = {
|
||||
.hook[HOOK_BASEFS_UP] = {
|
||||
.cb = setup
|
||||
},
|
||||
.depends = { "pidfile" },
|
||||
};
|
||||
|
||||
PLUGIN_INIT(plugin_init)
|
||||
|
||||
Reference in new issue
Block a user