IT/SAP

Create systemctl service for SAPRouter

SAP_BASIS 2021. 11. 26. 10:23

1. Make service file at /etc/systemd/system/saprouter.service

[Unit]
Description=SAPRouter Service
After=network.target

[Service]
Type=simple
WorkingDirectory=/usr/sap/saprouter

User=saprouter
Group=saprouter

Environment="SECUDIR=/usr/sap/saprouter" "SNC_LIB=/usr/sap/saprouter/libsapcrypto.so"
ExecStart=/usr/sap/saprouter/sr_start.sh
ExecStop=/usr/sap/saprouter/saprouter -s
ExecReload=/usr/sap/saprouter/saprouter -n

Restart=on-failure

[Install]
WantedBy=multi-user.target

 

2. Sample sr_start.sh

#!/bin/sh

SECUDIR=/usr/sap/saprouter; export SECUDIR
SNC_LIB=/usr/sap/saprouter/libsapcrypto.so; export SNC_LIB

/usr/sap/saprouter/saprouter -r -K "p:<Distingushed Name>" -R saprouttab -S 3299 -G saprouter.log

'IT > SAP' 카테고리의 다른 글

STMS Script in OS  (0) 2022.03.28
Create systemctl service for SAPRouter  (0) 2021.11.26
Deploying the SCA Using Telnet  (0) 2021.02.19
To download the SAP Notes in wget  (0) 2020.12.10
Register AS ABAP system to SLD in RZ70 using HTTP connection  (0) 2020.08.11
Useful SAP Notes  (0) 2020.07.24