Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

win32_query_service_status(3) [php man page]

WIN32_QUERY_SERVICE_STATUS(3)						 1					     WIN32_QUERY_SERVICE_STATUS(3)

win32_query_service_status - Queries the status of a service

SYNOPSIS
mixed win32_query_service_status (string $servicename, [string $machine]) DESCRIPTION
Queries the current status for a service, returning an array of information. PARAMETERS
o $servicename - The short name of the service. o $machine - The optional machine name. If omitted, the local machine will be used. RETURN VALUES
Returns an array consisting of the following information on success, FALSE if there is a problem with the parameters or a Win32 Error Code on failure. o $ServiceType - The dwServiceType. See Win32Service Service Type Bitmasks. o $CurrentState - The dwCurrentState. See Win32Service Service Status Constants. o $ControlsAccepted - Which service controls are accepted by the service. See Win32Service Service Control Message Accepted Bitmasks. o $Win32ExitCode - If the service exited, the return code from the process. o $ServiceSpecificExitCode - If the service exited with an error condition, the service specific code that is logged in the event log is visible here. o $CheckPoint - If the service is shutting down, holds the current check point number. This is used by the SCM as a kind of heart-beat to detect a wedged service process. The value of the check point is best interpreted in conjunction with the WaitHint value. o $WaitHint - If the service is shutting down it will set WaitHint to a checkpoint value that will indicate 100% completion. This can be used to implement a progress indicator. o $ProcessId - The Windows process identifier. If 0, the process is not running. o $ServiceFlags - The dwServiceFlags. See Win32Service Service Service Flag Constants. SEE ALSO
Win32Service Predefined Constants. PHP Documentation Group WIN32_QUERY_SERVICE_STATUS(3)

Check Out this Related Man Page

WIN32_SET_SERVICE_STATUS(3)						 1					       WIN32_SET_SERVICE_STATUS(3)

win32_set_service_status - Update the service status

SYNOPSIS
bool win32_set_service_status (int $status, [int $checkpoint]) DESCRIPTION
Informs the SCM of the current status of a running service. This call is only valid for a running service process. PARAMETERS
o $status - The service status code, one of WIN32_SERVICE_RUNNING, WIN32_SERVICE_STOPPED, WIN32_SERVICE_STOP_PENDING, WIN32_SER- VICE_START_PENDING, WIN32_SERVICE_CONTINUE_PENDING, WIN32_SERVICE_PAUSE_PENDING, WIN32_SERVICE_PAUSED. o $checkpoint - The checkpoint value the service increments periodically to report its progress during a lengthy start, stop, pause, or continue operation. For example, the service should increment this value as it completes each step of its initialization when it is start- ing up. The $checkpoint is only valid when the $status is one of WIN32_SERVICE_STOP_PENDING, WIN32_SERVICE_START_PENDING, WIN32_SERVICE_CONTINUE_PENDING or WIN32_SERVICE_PAUSE_PENDING. RETURN VALUES
Returns TRUE on success, FALSE if there is a problem with the parameters or a Win32 Error Code on failure. SEE ALSO
win32_start_service_ctrl_dispatcher(3), Win32Service Service Status Constants. PHP Documentation Group WIN32_SET_SERVICE_STATUS(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Hosting Service Eating Space

Dear Group, I am not much used to UNIX. The company I am hosting wiht refuses to help me with this trouble, but as near as I can see, it is NOT my trouble. I have had this service for over a year. I just renewed for another year and all of a sudden the disk quota has been disappearing. I... (3 Replies)
Discussion started by: cindy
3 Replies

2. UNIX for Dummies Questions & Answers

Time service info

Where can i find info about the Time Service of UNIX ??? I need to "speak" with a machine which has UNIX os ( i know its IP address ) and to get from this machine its date or time. I work with Cygwin on my machine. any help will be welcomed .... (1 Reply)
Discussion started by: Inbal
1 Replies

3. UNIX for Dummies Questions & Answers

services

I have an application service running on an AIX server Client application is able to connect to the server machine. Strange thing is when i do "netstat -a | grep servicename" I get no output but when i do "ps -ef | grep service name", I am able to see the service running I... (1 Reply)
Discussion started by: bryan
1 Replies

4. HP-UX

Service Guard 11.16 in HPUX 11.11?

Hello! I need to upgrade my Service Guard 11.14 to 11.16, but I don't know how to do it. We have two HP9000 running on HPUX 11.11. Where can i download the ServiceGuard 11.16? Is there any manual or website where i can read the steps to follow? Thanks in advance! (2 Replies)
Discussion started by: faca317
2 Replies

5. Programming

Linux Service

Hi, I want to write a service like windows service for my rhel4u5 server.And this service every day at 4:00 am connect a ftp server and download file then parse information at txt file then insert or update info at my database server(oracle).and this service can be stopped or paused by user.And... (1 Reply)
Discussion started by: ariyurek
1 Replies

6. AIX

AIX Service Packs

Can anyone out there let me know what is the *common* Technology Level and Service Pack that everyone is at? I am at 5300-06-04-0748 on all of my LPARs. Also- does anyone have any guidelinies to rolling out new TL and Sps? Thanks (4 Replies)
Discussion started by: seacros
4 Replies

7. Solaris

Service Mode on XSCF

While entering to service mode on XSCF i getting following error XSCF> service Account is not enabled for service mode. What could be the reason for this ? (5 Replies)
Discussion started by: fugitive
5 Replies

8. Red Hat

#service --status-all : screen flickering

hi there when i run #service --status-all or #service nfs status the screen flickers if i ssh from remote system than i dont have flickering on the remote nor that system. is it something to do with probably display configuration. ? and which file are the display setting... (7 Replies)
Discussion started by: dplinux
7 Replies

9. Shell Programming and Scripting

Please Help me. if command

i want condition . 1. if "service = 100" or "service = 121" and "datetime=today" MY CODE if &]; then echo "Transection LOG" echo "" echo "Detail LOG" echo "" exit; fi but when rub my script. I get error (2 Replies)
Discussion started by: ooilinlove
2 Replies

10. AIX

service status in AIX

good afternoon to all hay i m new in AIX. my problem is that.....plz tell me how to see " service status" in AIX Becoz i run /etc/rc.d/rc.2/Sbesclientd so its show below like this bash-3.2$ sudo /etc/rc.d/rc2.d/SBESClientd status Usage: /etc/rc.d/rc2.d/SBESClientd { start | stop } I... (2 Replies)
Discussion started by: life008
2 Replies

11. UNIX and Linux Applications

Linux program

Hi AllPlease send me source code for following if u have......... Write a code that to Demonize a Service (take any service of your choice) to be Invoked by Superserver. All replies are expected to be directed to the flat file (select any specific path you want). Thanks,Nisha Vaghela (2 Replies)
Discussion started by: nisha_vaghela
2 Replies

12. Shell Programming and Scripting

[Solved] While tomcat shutting down getting error

While tomcat shutting down getting the below error. Error occurred during initialization of VM Could not reserve enough space for code cache CATALINA_OPTS="-verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=24M -Xms256M -Xmx512M -Djava.awt.headless=true -XX:-UseCompressedOops... (2 Replies)
Discussion started by: tuxslonik
2 Replies

13. UNIX for Dummies Questions & Answers

How a process can check if a particular process is running on different machine?

I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Discussion started by: saurabhnsit2001
2 Replies

14. Linux

How to check a particular service is running on Linux?

We are using TeamSite application. Its a content management system application. How can I check if TeamSite service is running or not using ksh onn Linux platform ? On Windows its easy, I can do services.msc and entire list will come up. How to check it in Linux ? I tried using 'ps -ef', it... (4 Replies)
Discussion started by: paramshamnani
4 Replies

15. Shell Programming and Scripting

Rows to columns

Hi, I have a text file with records as below Service Contract: Account Type: Client Number: Group Number: Account Currency: I want to print 2nd,3rd and 5th as a separate column, like -> Account Type: ,Client Number: ,Account Currency: How can I do that? (1 Reply)
Discussion started by: dsid
1 Replies