-
I wonder about
Directive
. A directive would be a verb, and an enum like that would havestart
andstop
defined. Better:enum DirectiveState { Disabled, Enabled } enum Directive { Disable, Enable, Start, Stop }
However, based on the Solaris init talk, it seems like it would be a good idea to implement
Directive
as defined in this comment as part of the configuration file, as methods on the service, rather than as a fixed set of directives, as shown here.enable
anddisable
should be implemented as part of init rather than as methods in the service file, using thestart
andstop
methods. -
As per configuration file format, which does everyone prefer (ping me in the chat):
[method.start] cmd = [ "vesad", "T", "T", "G" ]
[method.start] bin = "initfs:/bin/vesad" args = [ "T", "T", "G" ]
Please register or sign in to comment