worker task: allow to configure path and owner/group

And application now needs to call init_worker_tasks() before using
worker tasks.

Notable changes:
- need to call  init_worker_tasks() before using worker tasks.
- create_task_log_dirs() ís called inside init_worker_tasks()
- removed UpidExt trait
- use atomic_open_or_create_file()
- remove pbs_config and pbs_buildcfg dependency
This commit is contained in:
Dietmar Maurer
2021-09-22 08:44:48 +02:00
parent 049a22a3a3
commit 0a33fba49c
6 changed files with 290 additions and 224 deletions

View File

@ -46,9 +46,6 @@ pub fn our_ctrl_sock() -> String {
ctrl_sock_from_pid(*PID)
}
mod upid;
pub use upid::*;
mod worker_task;
pub use worker_task::*;