bumped minor version number, minor dinit configuration fix.
This commit is contained in:
parent
bc5760eee9
commit
7dac47e0d8
4 changed files with 9 additions and 3 deletions
|
|
@ -348,6 +348,7 @@ void AppInfo::updateNextTimeToRun()
|
||||||
next_time_to_run_parse_failed = false;
|
next_time_to_run_parse_failed = false;
|
||||||
bool got_run_every = false;
|
bool got_run_every = false;
|
||||||
bool got_run_at = false;
|
bool got_run_at = false;
|
||||||
|
scheduled = false;
|
||||||
std::chrono::system_clock::time_point every_time_point, at_time_point;
|
std::chrono::system_clock::time_point every_time_point, at_time_point;
|
||||||
if(this->run_every.size() != 0) {
|
if(this->run_every.size() != 0) {
|
||||||
auto next_time = parseEveryTimeFormat(run_every);
|
auto next_time = parseEveryTimeFormat(run_every);
|
||||||
|
|
|
||||||
|
|
@ -207,9 +207,11 @@ void ExecutionManager::run()
|
||||||
if(ptr->getScheduled()) {
|
if(ptr->getScheduled()) {
|
||||||
ptr->addToPreviousExecutionList(pid);
|
ptr->addToPreviousExecutionList(pid);
|
||||||
ptr->updateNextTimeToRun();
|
ptr->updateNextTimeToRun();
|
||||||
|
if(ptr->getScheduled()) {
|
||||||
std::lock_guard<std::mutex> lock_get(this->job_list_mutex);
|
std::lock_guard<std::mutex> lock_get(this->job_list_mutex);
|
||||||
scheduled_list.push_back(ptr);
|
scheduled_list.push_back(ptr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
state_change.fetch_add(1);
|
state_change.fetch_add(1);
|
||||||
state_change.notify_all();
|
state_change.notify_all();
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
4
main.cpp
4
main.cpp
|
|
@ -102,7 +102,7 @@ For a detailed info about the json startup file use --help json.)" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void printVersion() {
|
void printVersion() {
|
||||||
std::cout << "StartUpRunner: Version-0.0.3 Pre-Alpha Pre-BigBang Era Edition." << std::endl;
|
std::cout << "StartUpRunner: Version-0.1.1 Pre-Alpha Pre-BigBang Era Edition." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void printDefaults() {
|
void printDefaults() {
|
||||||
|
|
@ -161,6 +161,8 @@ Each App Entry contains:
|
||||||
For Any, [time] can be a list of timestamps seperated by commas.
|
For Any, [time] can be a list of timestamps seperated by commas.
|
||||||
[time] Daily: for running daily at that time.
|
[time] Daily: for running daily at that time.
|
||||||
[day] [time] Weekly: for running every week on those days at that time.
|
[day] [time] Weekly: for running every week on those days at that time.
|
||||||
|
Example: 1,2,3 01:30:00 Monthly
|
||||||
|
Example: Wed, Fri 02:50:00, 20:20:02 Weekly
|
||||||
[OPTIONAL] run_on_start[boolean] : Run on initial startup as well [Only valid for scheduled tasks].
|
[OPTIONAL] run_on_start[boolean] : Run on initial startup as well [Only valid for scheduled tasks].
|
||||||
|
|
||||||
Example startup_apps.json:
|
Example startup_apps.json:
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,4 @@ type = scripted
|
||||||
command = /path_to_executable/StartUpRunner --log_dir /var/logs/StartUpRunner/ --json /path_to_startup_json/startup_apps.json
|
command = /path_to_executable/StartUpRunner --log_dir /var/logs/StartUpRunner/ --json /path_to_startup_json/startup_apps.json
|
||||||
logfile = /var/log/dinit/StartUpRunner.log
|
logfile = /var/log/dinit/StartUpRunner.log
|
||||||
after = network.target
|
after = network.target
|
||||||
|
restart = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue