2021-09-19 14:53:37 +00:00
|
|
|
version 1 .
|
|
|
|
embeddedType EntityRef.Cap .
|
|
|
|
|
|
|
|
Service = DaemonService .
|
|
|
|
|
|
|
|
DaemonService = <daemon @id DaemonId> .
|
|
|
|
|
|
|
|
ServiceDependency = <depends-on @depender any @dependee any> .
|
|
|
|
|
|
|
|
DaemonProcess = <daemon @id DaemonId @config DaemonSpec>.
|
|
|
|
DaemonId = any .
|
|
|
|
DaemonSpec = { argv: [string ...] } & @env DaemonEnv & @dir DaemonDir & @clearEnv ClearEnv .
|
2021-09-20 13:43:13 +00:00
|
|
|
DaemonEnv = @present { env: { EnvVariable: EnvValue ...:... } } / @absent {} .
|
2021-09-19 14:53:37 +00:00
|
|
|
DaemonDir = @present { dir: string } / @absent {} .
|
|
|
|
ClearEnv = @present { clearEnv: bool } / @absent {} .
|
|
|
|
|
2021-09-20 13:43:13 +00:00
|
|
|
EnvVariable = @string string / @symbol symbol .
|
2021-09-19 14:53:37 +00:00
|
|
|
EnvValue = @set string / @remove #f .
|