Administration Guide > Basic TDV Administration Tasks > Starting TDV Processes on UNIX > Setting TDV Server to Start Automatically on UNIX
 
Setting TDV Server to Start Automatically on UNIX
If after installing the software you restart the UNIX installation machine, TDV Server and the metadata repository do not start automatically (unlike when they start automatically after a successful installation of the software). To configure them to start automatically upon UNIX restart, use the following procedure.
To configure the TDV service files csw.repository and csw.server
1. Log into the installation machine as root.
2. Navigate to the TDV installation directory:
cd <TDV_install_dir>/bin
 
3. Run the following command as the root user:
cis_install_services.sh
 
This command prompts for a user name and other details needed to install and configure the service files csw.repository and csw.server.
4. Enter the name of the user who starts TDV (not the root user) and the other information requested.
The script then installs csw.repository and csw.server into an appropriate location on the installation machine and configures them. The location is displayed on your screen when configuration is successful, so make note of this location, because you need it in the verification step below.
Note: Do not run the csw.repository or csw.server scripts directly. These are template files for cis_install_services.sh only.
Running cis_install_services.sh does not interrupt any repository or server processes, but prepares the machine to start these processes automatically when a UNIX computer is restarted.
5. Run the following commands as the root user:
cd <init_directory>
chmod 550 csw.repository
chmod 550 csw.server
 
The value of init_directory depends on the operating system:
Linux: /etc/rc.d/init.d or /etc/rc.d
AIX: /etc/rc.d/init.d
To verify the TDV service files configuration
1. Go to the location noted previously from running cis_install_services.sh.
Note: The console output of the script cis_install_services.sh displays the exact location.
2. Enter these commands:
./cis.repository restart
./cis.server restart
./cis.cache restart
 
Now if the machine is rebooted, the monitor, server, and repository processes should automatically start once the machine is ready to go.