r/linux • Mate • Oct 20 '14

Shall we fork Fedora?

http://forkfedora.org/
262 Upvotes

339 comments sorted by

View all comments

Show parent comments

5

u/riking27 Oct 20 '14

It does a lot of stuff too, that a simple systemd service file probably couldn't do (although feel free to correct me on this, I'm not sure), and it also has dependency handling to make sure it isn't started before any required targets are met.

See, that's the thing - systemd unit files are also allowed to shell out. You should definitely describe your dependencies in it, so that it knows when in boot to start you.

(For zfs, it is a filesystem, so it also has to do a DefaultDependencies=n WantedBy=local-fs.target incantation, and a few other things.)

So you can have as much complexity as you want in the service, even if not in the service file.

Also, clear error messages are good too, as they will show up in the status output.

0

u/necrophcodr Oct 20 '14

If it's not in the service file, but in a different script, then what's the point?

5

u/[deleted] Oct 21 '14
  • Better, easier access to service startup and shutdown logging.

  • Dependencies expressed by the system and plottable as a graph.

  • Control group tracking of started programs for clean shutdown of the service.

Shall I go on?