Run As Service runassrv.exe 詳細(xì)參數(shù)第1/2頁
把任何可執(zhí)行文件(包括批處理和角本)當(dāng)作系統(tǒng)服務(wù)運(yùn)行的工具
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
介紹:
■ 將任何可執(zhí)行文件作為系統(tǒng)服務(wù)運(yùn)行。
■ 開始主要是為了移植一些linux 的 daemon;也可以用于啟動(dòng)任何應(yīng)用程序和維護(hù)性角本。
■ 安靜地運(yùn)行,除非指定了 Interactive 模式,否則不會(huì)彈出任何窗口。
■ 無需登陸,系統(tǒng)啟動(dòng)后自動(dòng)運(yùn)行,無需等待用戶登陸完畢。
■ 作為附帶的功能,支持啟動(dòng)、停止和刪除任何系統(tǒng)服務(wù)。
■ 完整接管系統(tǒng)服務(wù)管理器的指令(啟動(dòng)、停止等等)。運(yùn)行的程序終止后,自動(dòng)向服務(wù)管理器提交狀態(tài)同時(shí)自身退出,不會(huì)駐留內(nèi)存。
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
1.1.0.628 版新增內(nèi)容:
■ 所有 Action (例如:add / remove 等)無需再加前綴。
■ 新增 pause / continue 操作。
■ 現(xiàn)在開始,一個(gè) runassrv 服務(wù)可以并發(fā)運(yùn)行多個(gè) /cmdline 指定的應(yīng)用。
■ runassrv.exe 本身不需要放入系統(tǒng)搜索路徑中了。
■ 新增 control 操作,向指定的服務(wù)發(fā)送控制碼。
■ 新增 listsrv 操作,列出所有服務(wù)和驅(qū)動(dòng),支持很多過濾條件。
■ 新增 -logfile 和 -loglevel 選項(xiàng),日志記錄功能。
■ 新增 -unstoppable 系統(tǒng)服務(wù)管理器將拒絕停止一個(gè)以該選項(xiàng)安裝的服務(wù)。
■ 內(nèi)存收縮策略,典型情況下內(nèi)存開銷少于 300KB。
■ 解決了在某些系統(tǒng)上 start / stop 命令無效的問題。
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
1.1.2.803 版新增內(nèi)容:
■ 如果指定了多個(gè) /cmdline 參數(shù),那么服務(wù)啟動(dòng)時(shí),用戶命令將會(huì)按照 /cmdline 的指定順序逐個(gè)執(zhí)行。
■ 每條用戶命令都將等待上條 /cmdline 命令就緒后才開始執(zhí)行,保證有依賴關(guān)系的命令可以正常運(yùn)行。(參見:“關(guān)于執(zhí)行就緒”)
■ 為每條命令設(shè)置默認(rèn)的“當(dāng)前工作目錄”參數(shù)。例如,有命令:“/cmdline:C:\test\app.exe”,在執(zhí)行該命令時(shí),其當(dāng)前工作目錄將被設(shè)置為“C:\test\”,保證應(yīng)用程序可以正常訪問配置信息和私有數(shù)據(jù)。
■關(guān)于執(zhí)行就緒■ 對(duì)于命令行程序(包括批處理和角本),執(zhí)行就緒意味著標(biāo)準(zhǔn)輸入輸出設(shè)備已初始化完畢,并且已經(jīng)進(jìn)入主程序入口(main());對(duì)于圖形界面程序,執(zhí)行就緒意味著主窗體注冊(cè)和初始化完畢,程序已經(jīng)在主循環(huán)處等待接受消息。
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
幫助屏幕:
C:\Documents and Settings\Administrator>
#runassrv
===========================================================================
Run As Service Ver 1.1.2.803 by BaiYang / 2004 - 2006, Freeware
===========================================================================
Run any program as a Service
USAGE: runassrv <Action> <Options>
===========================================================================
Actions:
add - Add a Service.
remove - Remove a Service.
start - Start a Service.
stop - Stop a Service.
pause - Pause a Service.
continue - Continue a paused Service.
control - Control a service by send it a op-code
listsrv - List all installed services on local system
listgrp - List all service load order groups on local system (by start
order).
-h - this screen
===========================================================================
Options:
-cmdline - when the service start, witch program you want to run.
-name - the service name.
-dispname - service's display name in service manager
-desc - service's description in service manager
DEFAULT: none
-type - service type, can be:
FileSystemDriver
KernelDriver
OwnProcess (DEFAULT)
ShareProcess
InteractiveProcess
NOTE: set this option incorrectly may endanger your system!
-starttype - service start type, can be:
SystemStart
BootStart
AutoStart (DEFAULT)
DemandStart
Disabled
NOTE: set this option incorrectly may endanger your system!
-errctl - service error control policy, can be:
ErrorIgnore
ErrorNormal (DEFAULT)
ErrorSevere
ErrorCritical
NOTE: set this option incorrectly may endanger your system!
-group - specify service load order group
DEFAULT: none
-depen - names of services or load ordering groups that the system
must start before this service, delimited by '/'
DEFAULT: none
-user - specifies the name of the account under which the service
should run.
DEFAULT: LocalSystem
-pass - contains the password to the account name
DEFAULT: none
-priority - priority of the program you want to run, can be:
Idle
BelowNormal
Normal (DEFAULT)
AboveNormal
High
RealTime
-unstoppable - make service unstoppable by system service control manager.
-opcode - for "control", specify the operation code.
-logfile - specify the logging target.
DEFAULT: don't log to file.
-loglevel - specify the lowest logging level, can be:
DebugOnly (Most Detail)
Info
Warning
Error (DEFAULT)
FatalError
Disabled (Close Logging Output)
===========================================================================
Special Options With "listsrv":
-name - list service name that match the wildcard pattern
DEFAULT: *
-dispname - service display name's wildcard pattern.
DEFAULT: *
-pid - service belong to specified process.
DEFAULT: any
-type - specify service types to be match, delimite by "/".
DEFAULT: any
-starttype - specify service starttypes to be match, delimite by "/".
DEFAULT: any
-group - service belong to the load order group
DEFAULT: any
-state - service's current state, can be:
active
inactive
DEFAULT: any
===========================================================================
相關(guān)文章
FTP服務(wù)器端軟件Serv-U FTP Server 6.4.0.5&0.4 Final 漢化版 下載
FTP服務(wù)器端軟件Serv-U FTP Server 6.4.0.5&0.4 Final 漢化版 下載...2007-10-10官方價(jià)值5000多元的創(chuàng)力SQL商業(yè)版 附解壓密碼
官方價(jià)值5000多元的創(chuàng)力SQL商業(yè)版 附解壓密碼...2007-06-06Nero v7.8.5.0 簡(jiǎn)體中文精簡(jiǎn)版 下載
Nero v7.8.5.0 簡(jiǎn)體中文精簡(jiǎn)版 下載...2007-05-05Xilisoft DVD Ripper Platinum v4.0.75.0511 多國(guó)語言版 附注冊(cè)機(jī)
Xilisoft DVD Ripper Platinum v4.0.75.0511 多國(guó)語言版 附注冊(cè)機(jī)...2007-05-05遠(yuǎn)程控制軟件UltraVNC 1.0.4 RC4 簡(jiǎn)繁中文版 提供下載
遠(yuǎn)程控制軟件UltraVNC 1.0.4 RC4 簡(jiǎn)繁中文版 提供下載...2007-10-10Visita簡(jiǎn)體中文正式版的Http下載地址提供
Visita簡(jiǎn)體中文正式版的Http下載地址提供...2007-02-02UltraISO PE V8.6.1.1985_綠色多國(guó)語言版_光盤映像制作 下載 附注冊(cè)碼
UltraISO PE V8.6.1.1985_綠色多國(guó)語言版_光盤映像制作 下載 附注冊(cè)碼...2007-03-03微軟最新版的 Windows Server 2008 RC0 官方下載地址
微軟最新版的 Windows Server 2008 RC0 官方下載地址...2007-09-09圖像處理軟件 光影魔術(shù)手 簡(jiǎn)體中文版 V0.24 下載
圖像處理軟件 光影魔術(shù)手 簡(jiǎn)體中文版 V0.24 下載...2007-04-04