feat(server,client): remote install mode, install survives missing systemd
This commit is contained in:
1 parent
c2e9284a63
commit
e89cf7864a
6 files changed
+83
-18
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user