Note: This has been tested with Redhat Enterprise Linux 6, so it probably works on Fedora (Core) as well.
Log in as administrator. Create the following script in '/etc/init.d/' (the name of the script will be referred to as
USERNAME is the name of the user for the installation, and
ENV_NAME is the environment name for NetarchiveSuite (defined in the configuration file).
The following command has to be run for the
netarkiv script to be run during start-up and shut-down of Linux:
The script can also be run manually, by the commands:
This is an example of how to make Windows 2003 Server automatically call a script during start-up. The restart script has to be run, since it might not have closed correctly last time (e.g. power-failure, spontaneous reboot, etc.). This cleans up before the applications are restarted.
Create the service.
- Install Microsoft Resource Kit Windows 2003 Server.
- Run the program
RkTools.exe, and install with standard settings.
- Open a Command Prompt, and go to the directory where the Resource Kit has been installed (e.g.
C:\Program Files\Windows Resource Kits\Tools).
- Install a service with the following command
Instsrv <ServiceName> <path to resource kit>\srvany.exe(e.g.
Instsrv BitApp "C:\Program Files\Windows Resource Kits\Tools\srvany.exe").
- Open the registration database with
regedit, and find the service through the path
- Make sure that the start value is 2 (starting automatically).
- Create a new 'Key' called
- In this 'Key' create a new 'String Value' called
Application, which contains the complete path to the bat-script (e.g.
- Also within the 'Key' create another 'String Value' called
AppDirectory, which should contain a path to the directory where the bat-script is placed (e.g.
Now the application should automatically start during Windows startup.