Starting config file reading method
This commit is contained in:
parent
ee9bc42f8c
commit
188bb8c7be
16
main.c
16
main.c
@ -87,6 +87,14 @@ void showHosts()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Read the configuration file and give a return code to indicate any changes.
|
||||
* @return 1 if successful, 0 if otherwise.
|
||||
*/
|
||||
int read_config_file() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Daemonize the process, to be run like this ONLY if there were no arguments
|
||||
* provided.
|
||||
@ -104,6 +112,14 @@ void daemonize() {
|
||||
|
||||
else {
|
||||
// DO THE THING.
|
||||
while(1) {
|
||||
// read config
|
||||
read_config_file();
|
||||
// make adjustments
|
||||
|
||||
// profit??
|
||||
// JK, sleep.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user