Use ims54alertdsvc (alertdsvc) to run alerts as a Windows service. The service uses extra parameters to install, set up, start, stop, restart, and remove the service.
You must have set the PATH environment
variable for the ims wrapper script for these
commands to execute correctly. See “Setting the ims wrapper script path”.
ims alertdsvc {-install | -setup} service_name -home dir -file cfg -start service_name -stop service_name -restart service_name -remove service_name
-install service_name – installs alerts as a Windows service, where service_name is the name to give the service. If you do not specify a service_name, the service uses the default name “ims54alertsvc.” You can have multiple installations.
-setup service_name – change the parameters of the service.
-home dir – installs the service in the location specified by the dir parameter, which should be the fully qualified path to the working directory.
-file cfg – creates the alert configuration file using the name specified by the cfg parameter.
-start service_name – start the service.
The service is installed with a “Manual” startup
type, which means you must use the -start command
to launch the service. To have the service start automatically each
time you start or reboot your machine, select Start | Settings | Control
Panel | Administrative Tools | Services, right-click
the alerts service in the Services window right pane, then select
Properties. When the Properties window opens, select Automatic from
the Startup Type drop-down list. Click OK to save the change and
close the window.
-stop service_name – stop the service.
-restart service_name – restart the service.
-remove service_name – remove the service. Use ims alertdsvc -install service_name to reinstall it.
You can also use the Windows Services applet (Start | Settings | Control Panel | Administrative
Tools | Services) to start, stop, pause, resume, and restart the
service. When the Services window opens, right-click the alert service
and select the command you want to execute.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |