Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Support more systemd unit types #235

Closed
7 tasks done
bcwaldon opened this issue Mar 25, 2014 · 4 comments · Fixed by #458
Closed
7 tasks done

Support more systemd unit types #235

bcwaldon opened this issue Mar 25, 2014 · 4 comments · Fixed by #458
Assignees

Comments

@bcwaldon
Copy link
Contributor

fleet currently hard-codes support for .service and .socket units. fleet can actually support pretty much all unit types without any extra code, so it's clear we should enable that.

We should probably punt on network units for now given the added complexity they will add to the code.

  • service
  • socket
  • device
  • mount
  • automount
  • timer
  • path
@bcwaldon
Copy link
Contributor Author

Here's the code that limits fleet to handling service and socket units:

func (jp *JobPayload) Type() (string, error) {

@bcwaldon
Copy link
Contributor Author

bcwaldon commented May 6, 2014

I'm struggling to see a usecase for device, mount and automount units being scheduled through fleet. Any help?

@polvi
Copy link
Contributor

polvi commented May 6, 2014

A cool use case would be a set of units that provision an EBS (.service), mount it (.mount), then run some container (.service). That way you could make sure that the system has the mount points needed no matter where the process was running.

Not sure about automount or device. /cc @marineam

@cnelson
Copy link

cnelson commented May 10, 2014

Agreed with the above. Would be nice to tie a service to a mount unit to ensure that services that need external mounts (say NFS) would work without having to ensure that mount is on every machine in the cluster

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants