1 // MsgSyncReq: enable and start services on the remote host
3 // SPDX-License-Identifier: GPL-3.0-or-later
4 // Copyright (C) 2021-2024 Simon Ruderich
13 func (s *Sync) syncServices() error {
14 if len(s.req.Services) == 0 {
18 x, err := filepath.EvalSymlinks("/sbin/init")
22 if filepath.Base(x) == "systemd" {
23 return s.syncServicesSystemd()
25 // TODO: support more distributions
26 return fmt.Errorf("not yet supported on this distribution")