Skip to content
This repository has been archived by the owner on Feb 24, 2019. It is now read-only.

Targets

Niklas Sombert edited this page Jul 6, 2014 · 4 revisions

Targets define which services are started.

A target configuration file looks like this:

from yarfi.ServicesAndTargets import Target as Trg

class Target(Trg):
	def __init__(self):
		self.description = "Single User Mode"
		self.depends = ["single"]
		self.conflicts = [] #nothing

This should be pretty self-explanatory.

The files are placed in /etc/yarfi/targets/ and are named [name of the target].py.

The default target is called default.py. If you want to change that, you may either change the symlink or append yarfi-target=[target] to your kernel's command-line.

Oh, one thing: these files aren't parsed. They are imported as modules. And, currently, there is no exception handling. Which means: if there's a syntax error in any configuration file, yarfi will crash.

Clone this wiki locally