Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\111ServerMgr]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):44,00,3a,00,5c,00,43,00,61,00,6c,00,6c,00,42,00,61,00,63,00,\
6b,00,5c,00,33,00,38,00,35,00,31,00,5c,00,53,00,65,00,72,00,76,00,65,00,72,\
00,4d,00,67,00,72,00,5c,00,53,00,65,00,72,00,76,00,65,00,72,00,4d,00,67,00,\
72,00,2e,00,65,00,78,00,65,00,00,00
"DisplayName"="111ServerManager"
"Description"="111"
"DependOnService"=hex(7):6d,00,73,00,73,00,71,00,6c,00,73,00,65,00,72,00,76,00,\
65,00,72,00,00,00,00,00
"DependOnGroup"=hex(7):00,00
"ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\111ServerMgr\Security]
"Security"=hex:01,00,14,80,b8,00,00,00,c4,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,88,00,06,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,\
00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,00,01,\
00,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,fd,01,02,00,01,02,00,\
00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,\
01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\111ServerMgr\Enum]
"0"="Root\\LEGACY_SERVERMGR\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
描述:
1. 上述为.reg文件,导入注册表后,会生成名称为111的系统服务;
2. 我在系统内一共增加了名字为111,222,333的3个服务;
3. 这3个服务能够随系统系统,但是有时会出现某个启动失败(原因不清楚,可能是冲突了,因为没设置顺序);
4. 3个服务对应的路径分别为E:\111.exe,E:\222.exe,E:\333.exe;
问题:
1. 请问如何设置上面3个服务的启动顺序;
2. 要求以10秒或者20秒的间隔依次启动上述3个服务;
3. 如果运行一段时间后,其中某个服务如果死了,最好能给指定的mail邮箱发邮件;
4. 如果运行一段时间后,其中某个服务如果死了,不需要和其他服务相关联,手工来重启,否则会出现循环了
请高手指点,越详细越好。如果使用批处理解决,请顺便说下如何设置批处理随系统启动。
[ 本帖最后由 soocall 于 2009-5-16 14:47 编辑 ] |