vovtsd (Tasker Service Daemon)

The program vovtsd is a daemon written as a Tcl script that runs using the VOV vtclsh binary. This daemon can be used also to start various types of agents on any type of Windows or UNIX machine.

In Windows, vovtsd is started from the command line and then runs in a Windows cmd shell. Each vovserver connects to vovtsd via TCP/IP to start the vovtasker process.

vovtsd

This utility listens for requests to launch taskers for various projects, but always for the same user. The requests typically come from vovtaskermgr.

Usage


vovtsd: Usage Message

VOVTSD: Vov Tasker Service Daemon
    This utility listens for requests to launch taskers for
    various projects, but always for the same user.
    The requests typically come from vovtaskermgr.

USAGE:
    % vovtsd [OPTIONS]

OPTIONS:
    -v                     -- Increase verbosity.
    -h                     -- Print this help.
    -debug                 -- Generate verbose output.
    -help                  -- This message.
    -normal                -- Start a normal daemon (for current user)
    -expire <TIMESPEC>     -- Exit from vovtsd after specified time.
    -user  <user>          -- Specify the user that should be impersonated.
                              vovtsd computes the port number by
                              hashing the user name.
    -port  <n>             -- Specify port to listen to.

EXAMPLES:
    % vovtsd -normal
    % vovtsd -port 16666
    % vovtsd -user john -port 16000

Start a Remote vovtasker with vovtsd

To use vovtsd on Windows, follow these steps:

  1. Start a command shell on the Windows workstation as the user who is supposed to run the taskers. See below if this user needs to be different from the user logged in on the screen.
  2. Set up the shell to use VOV with the vovinit command. This sets the needed environment variables, including PATH.
    c:\temp> \<install_path>\win64\bat\vovinit
  3. Mount all filesystems using the appropriate drive letter; these need to agree with the values of serverdir and vovdir in the taskerRes.tcl file for the VOV project.
  4. Start vovtsd, possibly using a new window. The -normal option says to use a TCP/IP port calculated from the username. You may specify the port explicitly by using the -port option.
    c:> start vovtsd -normal

Run vovtsd as a Different User

The vovtasker started by vovtsd will run as the user running vovtsd. If you need for this to be different from the user logged in at the keyboard and screen, you have several options.

On Windows 2000 and Windows XP, you can use the runas.exe command included with the operating system. For example, on Windows XP, logged in as 'user1', you could start a command shell using:
C:\temp> runas /user:domain-name\username cmd
Note: You may need to mount the filesystems for that user. On Windows NT, the drive letters are shared, but on later versions, each user can mount a different filesystem on a given drive letter.

Run vovtsd as a Service

To install a Windows service that will automatically start vovtsd upon system startup, follow these two steps:

  1. Open a command prompt and navigate to the vovtsd startup directory, and install the service.
    c:> cd \<install_path>\<version>\win64\startup\vovtsd
    c:> XYNTService -i
  2. Optional: By default, this uses port 16666 for the vovtsd instance. If a different port is desired, it can be changed in the XYNTService.ini file found in this directory.
  3. Use the Windows control panel to specify the service to be executed as the intended user, as shown below:


    Figure 1. Windows Service Manager
  4. Find the Monitor service and right-click it to access its properties:


    Figure 2. Monitor Service Properties
  5. In the Log On tab, specify the user. If a user is not specified, Monitor will run as the Windows system user. This is highly discouraged for security reasons.
    The service is now ready for use and can be started using the Windows Service Manager. To delete the service, first stop it using the Windows Service Manager, then type XYNTService -u in the directory mentioned above using the Windows command prompt.