Hi,
Im trying to watch a service on a windows machine. Im stuck with the syntax of the trigger. The manual says
service_state[*]
State of service. Parameter is service name.
0 - running 1 - paused 2 - start pending 3 - pause pending 4 - continue pending 5 - stop pending 6 - stopped 7 - unknown 255 - SCM communication error
Parameter must be real service name as it seen in service properties under "Name:", not service display name!
So, I have a service whos real name is AcrSch2Svc.
Should I be using something like
{Host.Win32:service_state[AcrSch2Svc].last(0)}>0
?
That returns an error, but the instructions aren't clear as to what to do with "service_state[*]" to make it work.
Perhaps a tutorial ?
Olly
Im trying to watch a service on a windows machine. Im stuck with the syntax of the trigger. The manual says
service_state[*]
State of service. Parameter is service name.
0 - running 1 - paused 2 - start pending 3 - pause pending 4 - continue pending 5 - stop pending 6 - stopped 7 - unknown 255 - SCM communication error
Parameter must be real service name as it seen in service properties under "Name:", not service display name!
So, I have a service whos real name is AcrSch2Svc.
Should I be using something like
{Host.Win32:service_state[AcrSch2Svc].last(0)}>0
?
That returns an error, but the instructions aren't clear as to what to do with "service_state[*]" to make it work.
Perhaps a tutorial ?
Olly
Comment