The Core Technologies Blog

Professional Software for Windows Services / 24×7 Operation


AlwaysUp Wins “Best Windows Utility” Award from Windows IT Pro Magazine

Windows IT Pro Best Utility 2013 Silver MedalAs AlwaysUp enters its 10th year of running any application as a Windows Service, we are excited to announce that readers of the popular Windows IT Pro Magazine have recognized it as a Best Windows Utility for 2013! AlwaysUp has earned the coveted silver medal, bested only by Microsoft’s incredible Sysinternals suite.

According to Windows IT Pro, the 2013 Community Choice Awards represent the cream of the crop in the various markets the magazine covers. Jason Bovberg, the magazine’s senior editor, reported:

“Participation in our 2013 Community Choice awards was excellent. The community both nominates and votes for the best products of the year, ensuring a nice breadth of inclusion in the surveys. Our winners have earned a unique honor to stand out among their peers as winners of our Community Choice Awards.”

 

A big “thank you” to everyone who voted for us!

Posted in AlwaysUp | Tagged , | Leave a comment

Essential Tools for Windows Services: Services.msc

Hands down, the most important GUI utility for managing your Windows Services is Microsoft’s Services Control Panel Application — nicknamed “Services.msc” because it can be invoked with that command. This useful application (pictured below) lists every service installed on your PC and allows you to easily to start, stop or configure each one. It has been a fixture of Windows since the first release of NT, way back in 1993.

Starting the Services Application

You can launch the Services application in several ways:

  • With the Windows Key

    1. Hold down the Windows Key and press R to open the Run window:

      Windows Key + R
    2. Type services.msc in the Open field and hit return. Services should start in a second or two.

      Starting services.msc from the Run Dialog
  • From the Start button (Windows 7 and earlier)

    1. Click the Start button
    2. Type services.msc in the search field and hit return.

      Starting Services from the Start Button
  • From the Control Panel

    1. Click on the Start button and choose Control Panel. Or, on Windows 8/8.1, press Windows Key + I and select Control Panel from the charms menu on the right.
    2. In the window that comes up, enter the word services in the search box in the upper right to filter the contents, and click on the View local services link to summon the Services window.

      Starting Services from the Control Panel

Using the Services Application

  • Start/stop/restart/pause/resume a service

    Simply highlight the service on the list and click on the appropriate toolbar button. Note that most services don’t support pause & resume, so those buttons will probably be disabled.

    Start/Stop/Restart from the Services Toolbar

    You can also right-click on the service entry and start it from the context menu:

    The Services Right-Click Menu

  • Modify a service

    Double click a service (or right-click it and select Properties) to bring up the service’s Properties window:

    The Services Toolbar

    From there you can start or stop the service, change the account that the service runs in, configure what to do if the service crashes and see what services must be started before this one.

  • Manage services on another computer

    Assuming that your account has the necessary permissions to access the remote PC, simply select Connect to another computer… from the Action menu and enter the name (or IP address) of the other computer to see its list of services:

    Services: Connect to Another Computer

Shortcomings of the Services Application

Unfortunately, Services.msc can not:

Nevertheless, Services is the best GUI tool for managing your Windows Services

Despite its few shortcomings, Services.msc remains an extremely valuable tool. It is easy to use, is available on every version of Windows, and effortlessly handles a wide range of basic tasks on local and remote computers. Look to it first when working with Windows Services!

Posted in Windows Services | Tagged , , | 6 Comments

Hey scripters, http-ping now returns the HTTP status code

Savvy programmers and administrators often use our free http-ping command line utility to check that their web servers up and serving pages. http-ping’s return code (the percentage of page downloads that succeeded) lets them know when the web server is not responding, enabling them to take the appropriate action (for example sending an email or rebooting the server). This works very well when a web server fails to respond but it can’t detect more subtle problems, such as when the server is responding but returning an error.

http-ping version 6.0 addresses that problem. By returning the HTTP status code from the server’s response, a script can detect 404’s (Not Found), 500’s (Internal Server Error) or any other non-standard replies.

Users of AlwaysUp (and Service Protector) can deploy http-ping to detect failures and restart their web servers when necessary. For example, this sample “sanity check plugin” script below signals a restart when it detects a server error (500-599).

Enjoy!

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@echo off
:: This batch file uses the http-ping application to detect when
:: a web server is not responding, or responds with a 5XX status
:: code. It returns 0 if the server responds properly and 1 if not.
:: It is intended for use with AlwaysUp
:: (http://www.coretechnologies.com/products/AlwaysUp/)
:: or Service Protector
:: (http://www.coretechnologies.com/products/ServiceProtector/).
:: Copyright 2001-2013 Core Technologies Consulting, LLC. All
:: rights reserved.


:: Here are a few variables that you should adjust.
:: ** Please specify the URL you wish to ping, and the full path
:: to the http-ping executable on your system **
SET url=http://localhost:80
SET http-ping-exe-path="C:\Temp\http-ping.exe"
:: num-times-to-ping == The number of ping attempts that will be
:: made. The default of 5 is probably OK, but you can increase
:: it if errors are frequent (but tolerable).
SET num-times-to-ping=5
:: num-seconds-between-pings == The time to wait between ping
:: attempts. Increase this to give your server more time to get
:: back on its feet after an error.
SET num-seconds-between-pings=10


:: Loop "num-times-to-ping" times.
FOR /L %%X IN (1,1,%num-times-to-ping%) DO CALL :loopbody %%X


:: If we get here, then all ping attempts failed.
echo All %num-times-to-ping% attempts of http-ping failed^! ^
Exiting with 1.
exit 1


:loopbody
:: Ping your web server once, returning the HTTP status code
:: (or 0 if the ping failed to connect).
%http-ping-exe-path% -e -n 1 %url%
:: http-ping returns the HTTP status code or 0 if the ping
:: failed to connect. The list of HTTP status codes is
:: described here:
:: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
:: For this script, we'll panic on 0 or 5XX (server error)
:: and consider all other codes as a success.
IF %ERRORLEVEL% GTR 0 (
   IF %ERRORLEVEL% LSS 500 (
      echo http-ping returned %ERRORLEVEL% - not an error. ^
Exiting with 0.
      exit 0
   ) else IF %ERRORLEVEL% GTR 599 (
      echo http-ping returned %ERRORLEVEL% - not an error. ^
Exiting with 0.
      exit 0
   )
)
echo On attempt #%1, http-ping returned %ERRORLEVEL% - an error.
:: If this was not the last attempt, pause before trying again.
:: Since DOS doesn't have a "sleep" command, use ping with an
:: invalid address and a timeout (in milliseconds) to wait for
:: a while. You can adjust the timeout value
:: (num-seconds-between-pings) above.
IF %1 LSS %num-times-to-ping% (
	SET /A milliseconds=%num-seconds-between-pings% * 1000
	echo Pausing for %num-seconds-between-pings% second^(s^)^
before the next attempt...
	ping 1.1.1.1 -n 1 -w %milliseconds% > nul
)
Posted in http-ping | Tagged , | Leave a comment

Service Protector works with Windows 8.1 Preview

Windows 8.1, the first major update to Microsoft’s controversial Windows 8, is set to be released on October 18. With a restored (but trimmed down) start button, the ability to boot straight into the desktop and other practical improvements, this new OS has the potential to reduce the pain when switching from an older version of Windows.

It is vitally important to us that our applications work with all versions of Windows so we took the recently unveiled 8.1 Preview for an extended test drive with Service Protector – our market-leading tool designed to keep any windows service running 24/7. So far all is well (knock on wood!), and our entire suite of tests has passed successfully. Here is a screenshot of Service Protector doing its job on Windows 8.1 Preview:

Needless to say, we will re-test Service Protector (and all of our applications) in October when Windows 8.1 is officially available, but based on what we have seen so far there shouldn’t be any problems.

Posted in Service Protector | Tagged , | Leave a comment

MyFolders 3.5: Save time working with your files and folders

MyFolders, our free utility that helps you copy or move files to your favorite folders, has been updated. Version 3.5 focuses on improving compatibility with Windows 8 and Server 2012 while fixing a bug handling some non-English file names. MyFolders remains compatible with all versions of Windows released after 2001 (32-bit and 64-bit).

And while we’re discussing MyFolders, here is a youtube video (created by a happy user) showing how to use this time-saving tool:

Posted in MyFolders | Tagged , , | Leave a comment