This simple script should start SAPRouter using sudo service saprouter start
command.
Just upload it to /etc/rc.d/
or /usr/local/etc/rc.d
directory and assign correct authorizations.
Be aware, that you can run SAPRouter on your FreeBSD system, but you need Linux emulation support.
Configuration is in /etc/make.conf
file:
- YES enable autostart
- NO disable autostart
Common Name in form p:CN=<SAPRouter from SAP>, OU=<customer number>, OU=SAProuter, O=SAP, C=DE
Verbosity of the command which goes into the log.
- 1 - Lowest verbosity
- 3 - Highest
- Default: 1
Port on which the SAP Router will listen.
- Default: 3299
Location of saprouttab file with the routing rules.
- Default: /usr/saprouter/saprouttab
Hostname of SAP Router machine.
- Default: localhost
User under which the SAP Router will be run and which has SSO to SAP using certificate.
- Default: saprouter
File where logs are written to
- Default: /var/log/saprouter.log
Directory, where does the SAP Router reside, for SECUDIR variable.
- Default: /usr/sap/saprouter
Location of libsapcrypto library, for SNC_LIB variable.
- Default: /usr/sap/saprouter/libsapcrypto.so