Usage Note 44127: UNIX ps command not found when running rc.spds script
The script rc.spds is used to start
SAS®
Scalable Performance Data Server® processes running in UNIX environments. The script employs
the UNIX /usr/bin/ps command to capture the
PIDs of the started servers. It then writes the PIDs of these processes to files (nspid, srvpid and snetid) in the log directory of the SPD Server installation.
These PIDs are used by the killrc script to stop the servers.
In some UNIX operating environments, the location of the ps command is
/bin/ps, so the
command is not found when rc.spds runs. As a result,
the files are not written to the log directory, and the killrc script is not able to stop the servers.
If the location of the ps command in your operating environment
is not /usr/bin, you can solve the problem by modifying the
following lines of the rc.spds script file to
reference the correct location:
/usr/bin/ps -f | /bin/grep spdsns | /bin/grep $NSPORT | /usr/bin/awk '{print $2}' > $LOGDIR/nspid
/usr/bin/ps -f | /bin/grep spdsserv | /bin/grep $NSPORT | /usr/bin/awk '{print $2}' > $LOGDIR/srvpid
/usr/bin/ps -f | /bin/grep spdssnet | /bin/grep $SNSPORT | /usr/bin/awk '{print $2}' > $LOGDIR/snetid
Operating System and Release Information
| SPDS | Scalable Performance Data Server | Tru64 UNIX | | |
| Solaris for x64 | | |
| Solaris | | |
| Linux on Itanium | | |
| Linux for x64 | | |
| Linux | | |
| HP-UX IPF | | |
| HP-UX | | |
| AIX | | |
| 64-bit Enabled Solaris | | |
| 64-bit Enabled HP-UX | | |
| 64-bit Enabled AIX | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The scripts to start and stop SAS® Scalable Performance Data Server® processes on Linux for x64 and Oracle Solaris for x64 servers may not reference the correct location of
the UNIX ps command.
| Type: | Usage Note |
| Priority: | |
| Topic: | System Administration ==> Servers ==> SPDS
|
| Date Modified: | 2011-09-09 12:41:41 |
| Date Created: | 2011-08-26 14:17:59 |