use Win32::Daemon::State qw(constants); # a wild guess, but typical #### use constant SERVICE_START_PENDING => 1;