WIN32_DELETE_SERVICE(3) 1 WIN32_DELETE_SERVICE(3)win32_delete_service - Deletes a service entry from the SCM databaseSYNOPSIS
mixed win32_delete_service (string $servicename, [string $machine])
DESCRIPTION
Attempts to delete a service from the SCM database. Administrative privileges are required for this to succeed.
This function really just marks the service for deletion. If other processes (such as the Services Applet) are open, then the deletion
will be deferred until those applications are closed. If a service is marked for deletion, further attempts to delete it will fail, and
attempts to create a new service with that name will also fail.
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 WIN32_NO_ERROR on success, FALSE if there is a problem with the parameters or a Win32 Error Code on failure.
EXAMPLES
Example #1
A win32_delete_service(3) example
Deletes the dummyphp service.
<?php
win32_delete_service('dummyphp');
?>
SEE ALSO win32_create_service(3), Win32 Error Codes.
PHP Documentation Group WIN32_DELETE_SERVICE(3)
Check Out this Related Man Page
WIN32_QUERY_SERVICE_STATUS(3) 1 WIN32_QUERY_SERVICE_STATUS(3)win32_query_service_status - Queries the status of a serviceSYNOPSIS
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)
I am currently getting the following error on a solaris box : Could not open SCM connectionlaris box:
Would someone be able to help me understand the error as I do not know what a SCM connection is.
thanks
Kristian (1 Reply)
Hi there,
I got a big problem.
For one of our customers I did a website (php) that connects to another machine "A" (server) to machine "B" via expect.
Now he wants that after the the connection with "B" is established, a telnet connection to "C" is opened, and some commands are executed.... (2 Replies)
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)
Hi,
Does anyone seen this error before..
kernel: ENOMEM in journal_alloc_journal_head, retrying.
I encounter this problem on IBM eServers where when the above error appears usually the machine is dead or hanged. Unless a hard reboot is been done. Is this something have to do with the memory... (1 Reply)
Hi,
I got a Textfile contains hundreds of lines like this:
3 02 8293820 0 22 22
All I need is this:
293820 0 22 22
So i decided to delete until the first '8' comes up. But how I can realize that? (9 Replies)
Dear All,
I have a standalone desktop with SCO Openserver V 5, this is used to control a machine with custom written software. The problem is that the machine manufacturer has closed shop (bankruptcy) and there is no support on software.
As a precaution I would want to make a complete backup of... (3 Replies)
Hi, everyone. Could you help me with deletion of files, which are 20 minutes old.
I found out how to make deletion for files in that way :
find <dir> -mtime n -exec rm -rf "{}"
Could you offer your suggestions.
Many thanks in advance. (5 Replies)
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)
Hello,
i have a question.
My problem is that i have a file like:
TEST
JOHN
ADAM
MICHAEL
SEBASTIAN
ANDY
i want find for MICHAEL and want delete lines like this:
TEST (4 Replies)
Hi All, How are you Guys?
I am using the Code
use Win32::IEAutomation;
# Creating new instance of Internet Explorer
my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1);
# Site navigation
$ie->gotoURL('http://www.google.com');... (4 Replies)
I have a file that has the following entries:
+==> FILER LISTING <==
deleting /vol/icm_wks_0363
deleting /vol/icm_wks_0365
deleting /vol/icm_wks_0393
deleting /vol/icm_wks_0394
deleting /vol/icm_wks_0399
deleting /vol/icm_wks_0416
deleting /vol/icm_wks_0494
deleting ... (2 Replies)
Discussion started by: newbie2010
2 Replies
15. Post Here to Contact Site Administrators and Moderators
Hi Administrator,
Please delete the following post as soon as possible.
https://www.unix.com/shell-programming-and-scripting/199817-solved-running-script-remotely-sudo-id.html (8 Replies)