[Unit]
Description=SAP Router
After=network.target
[Service]
Type=simple
RemainAfterExit=yes
WorkingDirectory=/usr/sap/SR0
User=sapadm
Group=sapsys
Environment="SECUDIR=/usr/sap/SR0" "SNC_LIB=/usr/sap/SR0/libsapcrypto.so"
#ExecStart=/usr/sap/SR0/sr_start.sh
ExecStart=/usr/sap/SR0/saprouter -r -R /usr/sap/SR0/saprouttab -G /usr/sap/SR0/saprouter.log -V1 -T /usr/sap/SR0/saprouter.trc -J 5000000
ExecStop=/usr/sap/SR0/saprouter -s
ExecReload=/usr/sap/SR0/saprouter -n
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable saprouter.service
systemctl start saprouter.service