feat(server,client): remote install mode, install survives missing systemd

This commit is contained in:
hh committed 2026-10-02 22:09:50 +00:00
1 parent c2e9284a63
commit e89cf7864a
6 files changed
+83 -18

No files matched your search

+4 -1
View File
@@ -96,7 +96,10 @@ func (cfg *Config) Install() error {
return err
}
}
return startService(home, binary, filepath.Join(cfg.DataDir, "daemon.log"))
if err := startService(home, binary, filepath.Join(cfg.DataDir, "daemon.log")); err != nil {
fmt.Fprintf(os.Stderr, "lodge: the daemon could not be started as a service: %v\nrun `lodge daemon &` to keep this machine in sync\n", err)
}
return nil
}
func (cfg *Config) installHook(binary string) error {