With the script below you will be able to use command :
- "service saprouter start" to start saprouter on linux.
- "
- service saprouter stop" to stop saprouter on linux.
- "service saprouter status
- " to have status and pid of saprouter on linux.
/etc/init.d/saprouter |
---|
#!/bin/sh . /etc/rc.d/init.d/functions RETVAL=0 basedir=/usr/saprouter SAPROUTERARGS=" -r -R ${config} -G ${logfile} -T ${tracefile} -J 1048576 -Y 12 -C 1000 -W 9000000 "
configtest() { rh_status(){ rh_status_q() { start() { echo -n $"Starting $prog: " stop() { rh_status_q echo -n $"Shutting down softly $prog: " [ $RETVAL -eq 0 ] && rm -f $lockfile
case "$1" in exit $? |
usefull command :
to increase trace : saprouter -t -V 2
to see list on client saprouter -l :
Mon Aug 26 13:59:04 2013
SAP Network Interface Router, Version 40.4
Mon Aug 26 13:59:05 2013
peer SAProuter with NI version 40 ...
send info-request to running SAProuter ...
SAP Network Interface Router running on port 3299 (PID = 4838)
Started on: Mon Aug 26 11:58:00 2013
ID CLIENT | PARTNER service
-----------------------------------+---------------------------------------
8 localhost | (no partner)
76 10.126.104.193 | 10.134.235.67 sapdp00
170 10.126.104.193 | 10.134.235.67 sapdp00
62 10.126.104.193 | 10.134.235.79 3281
130 sapserv3 | 10.134.235.79 3281
81 10.126.104.193 | 10.126.115.14 3200
Total no. of clients: 11
Working directory : /usr/saprouter
Routtab : /usr/saprouter/ACL/saprouter.tab