9 type systemdUnit struct {
15 func (u *systemdUnit) Start(ctx context.Context) error {
16 cmd := command("systemd-run", append([]string{"--unit=arvados-" + u.name, u.cmd}, u.args...)...)
19 err = fmt.Errorf("systemd-run: %s", err)
24 func (u *systemdUnit) Running(ctx context.Context) (bool, error) {
25 return runStatusCmd("systemctl", "status", "arvados-"+u.name)
28 func runStatusCmd(prog string, args ...string) (bool, error) {
29 cmd := command(prog, args...)