


Windows NT
On a Windows NT (Intel) server, we recommend that acuserve and portmapper be installed as Windows NT services. This causes the services to be started automatically each time the system is booted. If you do not install them as services, they will stop whenever you log out.
Acucorp provides an installation script that gives you the option to install both the portmapper and acuserve daemons as Windows NT services. If you choose not to install the services from the installation script, you can install them as services in the following way:
You must be logged into an account that belongs to the Administrators group. From the AcuServer icons, select the icon titled "Install Portmap Service". Next, select the icon titled "Install Acuserve Services". Or, from the command line, type:
inst_pm <full-pathname>\portmap.exe
acuserve -install
The services will now be started automatically each time the system is booted.
Immediately following the installation, you can start the services from the AcuServer icons. Select the icon "Start Portmap Service" and then "Start Acuserve Service". As an alternative, from the command line you could type:
sc start Portmap
sc start Acuserve
Another alternative is to use the Start/Settings/Control Panel/Services menu option.
Communicating with the services
After the services have been installed, you can use the command "sc.exe" to communicate with them. The format for this command is:
sc [<server>] <command> <service name> [<options>]
If <server> is specified, it enables you to communicate with the service on the specified server. The server must be specified in this format:
\\servername
The <command> may be one of the following:
query - displays the state of the service
start - starts the service
stop - stops the service
delete - removes the service
The <service name> may be one of the following:
Portmap - service name for portmap.exe
Acuserve - service name for acuserve.exe
The <options> apply only to the "start" command for the Acuserve service and are the same options you would use if you started AcuServer from the command line. You begin the options by giving the full pathname of "acuserve.exe". For example:
sc start Acuserve c:\acusrv\bin\acuserve.exe -start -l
If you do not specify any options, as shown here:
sc start Acuserve
then the default options are used:
\acusrv\bin\acuserve.exe -start -l -e \acusrv\bin\acuserve.log
These are the same default options that are used when the system boots.
UNIX
On a UNIX server, to start acuserve whenever the server boots, add the "acuserve -start" command to the system boot file. Your entry might be similar to the following:
In C Shell:
#
# If the acuserve executable is present,
# start acuserve
if -f /acucobol/acuserve then
echo Starting acuserve > /dev/console
/acucobol/acuserve -start -e /acucobol/acuserve.log
endif
In Bourne Shell:
#
# If the acuserve executable is present,
# start acuserve
if (test -f /acucobol/acuserve) then
echo Starting acuserve > /dev/console
/acucobol/acuserve -start -e /acucobol/acuserve.log
fi