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' 카테고리의 다른 글
Create self-signed SSL certificate in SAP ABAP (0) | 2022.07.21 |
---|---|
STMS Script in OS (0) | 2022.03.28 |
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 |