mirror of https://github.com/nocturn9x/nimd.git
parent
cad0908ccd
commit
5549f67737
|
@ -99,7 +99,7 @@ proc main(logger: Logger, mountDisks: bool = true, fstab: string = "/etc/fstab")
|
|||
var sigset: Sigset
|
||||
# TODO
|
||||
logger.info("Processing boot runlevel")
|
||||
addService(newService(name="echoer", description="prints owo", exec="/bin/echo owo",
|
||||
addService(newService(name="echoer", description="prints hello world", exec="/bin/echo hello world",
|
||||
runlevel=Boot, kind=Oneshot, workDir=getCurrentDir(),
|
||||
supervised=false, restartOnFailure=false, restartDelay=0))
|
||||
addService(newService(name="sleeper", description="la mamma di licenziato",
|
||||
|
@ -176,4 +176,4 @@ when isMainModule:
|
|||
logger.fatal(&"A fatal unrecoverable error has occurred during startup and NimD cannot continue: {getCurrentExceptionMsg()}")
|
||||
nimDExit(logger, 131) # ENOTRECOVERABLE - State not recoverable
|
||||
# This will almost certainly cause the kernel to crash with an error the likes of "Kernel not syncing, attempted to kill init!",
|
||||
# but, after all, there isn't much we can do if we can't even initialize *ourselves* is there?
|
||||
# but, after all, there isn't much we can do if we can't even initialize *ourselves* is there?
|
||||
|
|
Loading…
Reference in New Issue