File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ jobs:
141141
142142 service do
143143 run [opt_bin/"lore", "daemon", "start", "--foreground"]
144- keep_alive true
144+ keep_alive crashed: true
145145 log_path var/"log/lore.log"
146146 error_log_path var/"log/lore.log"
147147 working_dir HOMEBREW_PREFIX
Original file line number Diff line number Diff line change @@ -68,14 +68,16 @@ pub async fn run_daemon() -> Result<()> {
6868 // Check if lore has been initialized
6969 let config_path = Config :: config_path ( ) ?;
7070 if !config_path. exists ( ) {
71- anyhow :: bail !(
72- "Lore has not been initialized.\n \n \
71+ eprintln ! (
72+ "Error: Lore has not been initialized.\n \n \
7373 Run 'lore init' first to:\n \
7474 - Select which AI tools to watch\n \
7575 - Configure your machine identity\n \
7676 - Import existing sessions\n \n \
7777 Then start the daemon with 'lore daemon start' or let init do it for you."
7878 ) ;
79+ // Exit with code 0 so launchd doesn't treat this as a crash and restart
80+ std:: process:: exit ( 0 ) ;
7981 }
8082
8183 // Set up file logging
You can’t perform that action at this time.
0 commit comments