lauchd log added

This commit is contained in:
Toki 2024-12-27 07:57:44 +09:00
parent b393dd46b7
commit f15206aaf8

View file

@ -262,7 +262,7 @@ class SchedulerManager {
}
param.add('scheduler');
param.add('-s');
await OSStartup.registStartup(exe, _startupID, arguments: param);
await OSStartup.registStartup(exe, _startupID, arguments: param, logErrorFilePath: '$_schedulerPath/launch_err.log', logStandardFilePath: '$_schedulerPath/launch_std.log');
}
return simpleFuture;
}
@ -276,13 +276,6 @@ class SchedulerManager {
//======================== other process ========================//
Future start() async {
var zprofile = File('$userPath/.zprofile');
if(zprofile.existsSync()) {
_log(zprofile.readAsStringSync());
var shell = StringBuffer('source ${zprofile.path}');
await ProcessExecutor.start(shell);
}
_log('Scheduler is running on pid [$pid].');
while(true) {
//