The Adabas RESTful administration provides a system service for starting the daemon during startup. The service is started with a specific user, and all database containers, configuration files and log files are created with this user.
The system service scripts provide the possibility to start, stop, remove and install the system service. The script is called system_service.sh (on Linux) and system_service.bat (on Windows).
Please be aware that the user who starts the Adabas RESTful server will be the user that works on the offline methods on the database container. Online activities are performed using the login id that is used to connect to the Adabas RESTful server. This user id is displayed in the user queue of the database.
On Linux platforms, the Adabas RESTful service is added to the Linux system startup during installation. The service is started with the installation user.
The default behavior of systemd is to terminate all processes under Adabas
RESTful system service if that system service is restarted or stopped. As a result, the
Adabas nucleus will also be terminated if it was started via the Adabas RESTful system
service, e.g. by the Adabas Manager. This behavior can be rectified by adding the
parameter KillMode=process in the file
/usr/lib/systemd/system/sag<n>adarest.service, where
<n> is any number starting from 1.
[Unit] Description=Service to start the Adabas RESTful server ConditionPathExists=/opt/softwareag After=network.target [Service] Type=simple User=sag Group=sag Restart=on-failure Environment=SAG=/opt/softwareag WorkingDirectory=/opt/softwareag/AdabasRestAdministration ExecStart=/opt/softwareag/AdabasRestAdministration/bin/adabas-rest-service daemon #ExecStop=/opt/softwareag/AdabasRestAdministration/bin/adabas-rest-service stop KillMode=process # Make sure log directory exists and owned by syslog PermissionsStartOnly=true
On Windows platforms, the user who starts the Adabas RESTful administration must have
administration rights. Run the command prompt as administrator and run the
system_service.sh or bat command.
C:\SoftwareAG\AdabasRestAdministration\bin>system_service.bat install "START_DIRECTORY: C:\SoftwareAG\AdabasRestAdministration\bin\" "SAG : C:\SoftwareAG\AdabasRestAdministration\bin\\..\.." 2022-09-20 10:51:31 Adabas Operator RESTful service version v7.1.1.0 2022-09-20 10:51:31 Build date=20-09-2022_08:14:35 2022-09-20 10:51:31 Logging to file winfile:///C:\SoftwareAG\AdabasRestAdministration\bin\\..\..\AdabasRestAdministration\logs\service.log 2022-09-20 10:51:32 Service name : Adabas REST server v7.1.1.0 (123) 2022-09-20 10:51:32 Install service: Adabas REST server v7.1.1.0 (123) 2022-09-20 10:51:32 Service path : C:\SoftwareAG 2022-09-20 10:51:32 Service user : 2022-09-20 10:51:32 Service group : None 2022-09-20 10:51:32 Service connected 2022-09-20 10:51:32 Install service successfully: Adabas REST server v7.1.1.0 (123) 2022-09-20 10:51:32 Service command finished
In order to use the Adabas RESTful administration, the Adabas client global environment configuration needs to be set.