mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Refactor --with-sysconfig, default to /etc/default and /etc/conf.d
Both Debian and Builroot based systems use /etc/default and Alpine Linux use /etc/conf.d, so let's just put both in by default. If the directories exist we monitor them. The --with-syconfig configure option is now disabled by default. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
7e3b18a38d
commit
6862d7cd5f
5 files changed
+18
-17
No files matched your search
+5
-2
@@ -855,9 +855,12 @@ int conf_monitor(void)
|
||||
rc += iwatch_add(&iw_conf, FINIT_CONF, 0);
|
||||
|
||||
/*
|
||||
* Systems with /etc/default, or similar, can also monitor changes
|
||||
* in env files sourced by .conf files (above)
|
||||
* Systems with /etc/default, /etc/conf.d, or similar, can also
|
||||
* monitor changes in env files sourced by .conf files (above)
|
||||
* define your own with --with-sysconfig=/path/to/envfiles
|
||||
*/
|
||||
rc += iwatch_add(&iw_conf, "/etc/default/", IN_ONLYDIR);
|
||||
rc += iwatch_add(&iw_conf, "/etc/conf.d/", IN_ONLYDIR);
|
||||
#ifdef FINIT_SYSCONFIG
|
||||
rc += iwatch_add(&iw_conf, FINIT_SYSCONFIG, IN_ONLYDIR);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user