Changes between Version 6 and Version 7 of Windows_startstop_Service

09/11/13 22:09:48 (8 years ago)



  • Windows_startstop_Service

    v6 v7  
    4747Apart from running as a Windows service, startstop_service behaves just as startstop_nt. One interesting note is that if you select startstop_service in the Services control panel and click Stop or Restart, then startstop will attempt to shut down all applications attached to its ring via an Earthworm TERMINATE message. 
    49 If you want to look at the Status of Earthworm, or if you want to Restart an Earthworm module or Reconfigure Earthworm's modules and rings, and you aren't logged in as Administrator, you can either use !StartstopConsole, or you can do the following if you know the Administrator password: (Instructions for '''Windows XP''', but may work on other versions of Windows. See below for Vista.):[[BR]] 
    50 - Go to the Windows Start menu, and choose "Run"[[BR]] 
    51 - Type the following: 
    53 {{{ 
    54 runas /user:YOUR_MACHINE_NAME_HERE\administrator cmd 
    55 }}} 
    57 - This will open up a command window which should be able to connect to the running Earthworm, and thus allow you to type "restart", "reconfigure", "status", "pidpau" or "pau" here. 
    59 - To view what's going on in '''Vista or Windows Server 2008''' 
    61 !StartstopConsole won't work in Vista, nor will "runas" give you access to the session zero.[[BR]] 
    62 - Beforehand, add 'cmd' as a line in your startstop_nt.d with a !NewConsole, and reboot so the service starts this up.[[BR]] 
    63 - if you're not at the machine, make a remote desktop connection as whatever user you like[[BR]] 
    64 - open a command prompt[[BR]] 
    65 - if you're not running as administrator, in the command prompt type:[[BR]] 
    66 {{{ 
    67 runas /user:YOUR_MACHINE_NAME_HERE\administrator cmd 
    68 }}} 
    69 enter the admin password[[BR]] 
    70 - in the new administrator command prompt that comes up type: 
    71 {{{ 
    72 sc config ui0detect start= auto 
    73 sc start ui0detect 
    74 }}} 
    75 (if you get a Interactive Services Detection dialog, you can choose "Ask me later) 
    77 Once you've done all of the above, you can access session zero. The machine could be rebooted, different users couldlog in, etc. For any user to access startstop_service's session zero: 
    79 - in a command prompt window now you can type: 
    80 {{{ 
    81 rundll32 winsta.dll,WinStationSwitchToServicesSession 
    82 }}} 
    84 This will switch you to console 0. If you added a cmd prompt to startstop_nt.d, you should see it here now, and can type "status" or whatever. 
    86 That's a bit of a handful to type. Since your earthworm bin directory is already in your Windows path, you can cd to that bin directory and do something like: 
    87 {{{ 
    88 echo rundll32 winsta.dll,WinStationSwitchToServicesSession > session0.bat 
    89 }}} 
    90 So now you can just type "session0" at a command prompt to get to the startstop session. 
    92 Note that this means that ANY user of the system will be able to get a prompt with administrator privileges. I this essentially the same power one has with startstopconsole which has been part of Earthworm for a while. 
    94 (This was all tested with Vista. It _should_ work with Windows Server 2008 too, but hasn't been tested there yet. If you do it successfully or unsuccessfully please let us know.) 
    96 With '''2003 Server''' 
    98 How to Connect to the Console Session 
    100 (From 
    102 When you connect to the console session of a Windows Server 2003-based server, no other user has to be already logged on to the console session. Even if no one is logged on to the console, you are logged on just as if you were sitting at the physical console. 
    104 To connect from the remote Windows Server 2003-based computer, open a command prompt, and then type the following command: 
    105 {{{ 
    106 mstsc -v:servername /F -console 
    107 }}} 
    108 where mstsc is the Remote Desktop connection executable file, -v indicates a server to connect to, /F indicates full screen mode, and -console is the instruction to connect to the console session. 
     49If you want to look at the Status of Earthworm, or if you want to Restart an Earthworm module or Reconfigure Earthworm's modules and rings, and you aren't logged in as Administrator, you can either use !StartstopConsole 
    11051== Removing startstop_service ==