Name

Service::Enabled — Check if service is enabled

Synopsis

Import Service;
boolean Service::Enabled ( string  name );

Parameters

string name

service name

Return Value

boolean

true if service is set to run in any runlevel

Description

Returns true if any link in /etc/init.d/rc?.d/ exists for this script. If service does not exist, logs an error.