Skip to main content

Module service

Module service 

Source
Expand description

OS-native supervision for the node binary: install / uninstall / status / restart, plus an in-process run-supervised parent for platforms where the OS restart policy is incomplete (Windows Task Scheduler).

Structs§

InstanceLock
Hold an exclusive lock on {enroll-state}/node.instance.lock.
LaunchPlist
SchtasksXml
ServiceSpec
ServiceStatus
SystemdUnit

Functions§

acquire_instance_lock
dispatch
Parse install|uninstall|service-status|service-restart|run-supervised. Returns true if handled (caller should return).
install
Install the node under the OS supervisor for this platform.
install_panic_hook
render_launchd_plist
render_schtasks_xml
render_systemd_unit
restart
run_supervised
Parent process: respawn current_exe with child_args until forever.
status
uninstall