isService

isService(): Boolean;

The isService method of the Node class returns true if the executable that is currently running on the node of the receiver object is running as a service or it returns false if the executable is not running as a service.