Service Object

The service object describes an application that can be started automatically at system startup, or by operating system-defined services controls.
Name Attribute Requirement Type Description
Command Line cmd_line Recommended String The command line used to launch the startup application, service, process or job.
Display Name display_name Recommended String The service display name.
File file Recommended File The service file object.
Loaded Module loaded_module_name Recommended String The name of the module loaded by the service.
Name name Recommended String The unique name of the service.
Normalized Command LineЕxt normalized_cmd_line Optional String The CSIDL normalized command line used to launch the startup application, service, process or job (Windows only).
State run_state_id Recommended Integer The service state.
1StoppedThe service is not running.
2Start PendingThe service is starting.
3Stop PendingThe service is stopping.
4RunningThe service is running.
5Continue PendingThe service continue is pending.
6Pause PendingThe service pause is pending.
7PausedThe service is paused.
Start Type start_id Recommended Integer The service start type.
0UnknownThe startup type is unknown.
1AutoStarted automatically during system startup.
2BootStarted by the system loader.
3DemandStarted on demand. For example, by the Window service control manager when a process calls the Startservice function.
4SystemStarted by the IoInitSystem function.
6All LoginsStarted on any user login.
7Specific User LoginStarted when on a specific user login.
8Interactive LoginStarted on interactive logins.
9ScheduledStared according to a schedule.
10System ChangedStarted when a system item, such as a file or registry key, changes.
Types type_ids Recommended Integer Array The service type identifiers.
0UnknownThe type is unknown
2File System DriverFile system driver
3Kernel DriverDevice driver
4Recognized DriverRecognized Driver
5Own ProcessThe application runs in its own process
6Shared ProcessThe application shares a process with other services
7InteractiveThe service can interact with the desktop
8OtherU/X, OS X service
9AutoloadThe Mac OS X Autoload Application