Starting and Stopping nnCron. Crash Guard Mode.

If nnCron is installed under Windows 9*/ME, it starts as a regular application. In Windows NT/2000/XP, nnCron is started by default as a system service.

nnCron home directory contains a batch file named startnncron.bat, which checks the version of operating system and automatically start nnCron in a an appropriate way: either as a service or as a regular application.

nnCron service can be run "in the name of" any registered user who has sufficient rights (see Note), in other words, service nnCron will use this user account to log in. To do this, select nnCron in the the Services window (Control panel - Aministrative Tools - Services - nnCron), open Properties dialogue, select This Account on LogOn tab and enter the user name and password of the required user.

If a user wants to run nnCron as a regular application under Windows NT/2000/XP, he can do this by starting nnCron from command line with key -ns:

nncron.exe Ns

In order to stop nnCron and unload it from memory, you can do any of the following:


Suspended (Paused) Mode

nnCron provides the possibility to suspend its work without actually quitting the program. You can switch nnCron to suspended mode by using any of the following methods:

When in suspended mode, nnCron no longer executes any tasks (except tasks with HyperActive option, which are executed regardless of the operation mode, and except the case when nnCron was switched to suspended mode programmatically: in this case, nnCron continues to run the task which paused it, so that the same task could also "wake it up").

nnCron's icon in system tray will show if nnCron is in suspended mode or normal mode: in normal operation mode, it looks this , and in suspended mode, it looks this way: .

You can switch nnCron back to normal operation mode using any of the following methods:

Please note that flag file disable allows you to control nnCron's operation remotely.

See also description of word DISABLE-CRON?


Crash Guard Mode

Since nnCron's mission is to perform tasks which are important or even critical for the system, in has a special tool to increase its viability: so-called "Crash guard mode". For this purpose, it includes a special little utility nnguard.exe, which automatically restarts nnCron in case of a fatal error. In this way, we are trying to make sure that nnCron works uninterruptedly even on buggy and unstable systems.

To turn the crash guard mode on and off, you can either use the GUI or do it manually by editing nncron.ini.

It should be noted that nnCron writes technical information about its work into a text file named nncron.out, which is automatically deleted after the program was closed down correctly. If nnCron was closed incorrectly (because of a system error of a power failure), nncron.out will stay intact until the next time nnCron is started, and then this file get overwritten. If you don't want to lose those nncron.out files, then create a file named nodelout in nnCron home directory. When nnCron finds file nodelout in its home directory, it stops overwriting files nncron.out; instead, it renames them according to the mask %MM%-%DD%-%hh%-%mm%-nncron.out, so that you can check them later, at your convenience, and find out what exactly caused the error.


Note: in order to run nnCron not as System, but as à particular user, this user must have the following rights (see Control Panel - Administrative Tools - Local Security Settings - Local Policies - User Rights Assignment):

(user System has these rights by default).