last fix
This commit is contained in:
parent
44f37dfaff
commit
8f5ad2984a
5 changed files with 106 additions and 73 deletions
|
|
@ -1,24 +1,20 @@
|
|||
@echo off
|
||||
@title Stop OGP Agent
|
||||
net session >nul 2>&1
|
||||
if NOT %errorLevel% == 0 (
|
||||
echo Failure: Current permissions inadequate.
|
||||
echo[
|
||||
echo Run this script by using "Run as administrator" in the context menu.
|
||||
pause >nul
|
||||
exit
|
||||
)
|
||||
set WD=%~dp0
|
||||
pushd %WD%
|
||||
set path=%WD%bin;%WD%usr\sbin;%path%
|
||||
set CYGWIN=server ntsec
|
||||
set SHELL=/bin/bash
|
||||
if exist %WD%var\run\pure-ftpd.pid set /p PID1=<%WD%var\run\pure-ftpd.pid
|
||||
if exist %WD%OGP\ogp_agent.pid set /p PID2=<%WD%OGP\ogp_agent.pid
|
||||
if exist %WD%OGP\ogp_agent_run.pid set /p PID3=<%WD%OGP\ogp_agent_run.pid
|
||||
if exist %WD%OGP\scheduler.pid set /p PID4=<%WD%OGP\scheduler.pid
|
||||
IF NOT [%PID1%] == [] kill -15 %PID1%
|
||||
IF NOT [%PID2%] == [] kill -15 %PID2%
|
||||
IF NOT [%PID3%] == [] kill -15 %PID3%
|
||||
IF NOT [%PID4%] == [] kill -15 %PID4%
|
||||
taskkill /IM perl.exe /F
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "WD=%~dp0"
|
||||
pushd "%WD%"
|
||||
|
||||
set "PATH=%WD%bin;%WD%usr\sbin;%PATH%"
|
||||
|
||||
echo Stopping GSP Windows Agent...
|
||||
|
||||
if exist "%WD%var\run\pure-ftpd.pid" set /p PID1=<"%WD%var\run\pure-ftpd.pid"
|
||||
if exist "%WD%OGP\ogp_agent.pid" set /p PID2=<"%WD%OGP\ogp_agent.pid"
|
||||
if exist "%WD%OGP\ogp_agent_run.pid" set /p PID3=<"%WD%OGP\ogp_agent_run.pid"
|
||||
|
||||
if not "%PID1%"=="" "%WD%bin\kill.exe" -15 %PID1%
|
||||
if not "%PID2%"=="" "%WD%bin\kill.exe" -15 %PID2%
|
||||
if not "%PID3%"=="" "%WD%bin\kill.exe" -15 %PID3%
|
||||
|
||||
echo Done.
|
||||
pause
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue