// MsgSyncReq: enable and start services on the remote host // SPDX-License-Identifier: GPL-3.0-or-later // Copyright (C) 2021-2024 Simon Ruderich package sync import ( "fmt" "path/filepath" ) func (s *Sync) syncServices() error { if len(s.req.Services) == 0 { return nil } x, err := filepath.EvalSymlinks("/sbin/init") if err != nil { return err } if filepath.Base(x) == "systemd" { return s.syncServicesSystemd() } // TODO: support more distributions return fmt.Errorf("not yet supported on this distribution") }