aboutsummaryrefslogtreecommitdiff
path: root/initd/init.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-12 06:15:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-12 12:05:15 +0200
commit55d4a328c9fa369611115a066f4f305f2b74dafd (patch)
tree96933fd0b123850219c8d779077874d6180e5d4c /initd/init.h
parent82cd18107f5283054aa8bad27b7741eaf0cfea4c (diff)
Read environment for init from config file
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'initd/init.h')
-rw-r--r--initd/init.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/initd/init.h b/initd/init.h
index 878dc8d..a43b3f1 100644
--- a/initd/init.h
+++ b/initd/init.h
@@ -25,6 +25,8 @@
#include "telinit.h"
#include "util.h"
+#define ENVFILE ETCPATH "/initd.env"
+
enum {
STATUS_OK = 0,
STATUS_FAIL,
@@ -107,5 +109,13 @@ void svclist_add(service_t *svc);
*/
service_t *svclist_remove(pid_t pid);
+/********** env.c **********/
+
+/*
+ Read /etc/initd.env (actually ENVFILE defined above)
+ and setup environment variables for init.
+*/
+int initenv(void);
+
#endif /* INIT_H */