Like most other system services, PVFS2 may be started up automatically at boot up time through the use of rc scripts. We have provided one such script that is suitable for use on RedHat (or similar) rc systems. The following example demonstrates how to set this up:
bash-2.05b# cp /usr/src/pvfs2/examples/pvfs2-server.rc \ /etc/rc.d/init.d/pvfs2-server bash-2.05b# chmod a+x /etc/rc.d/init.d/pvfs2-server bash-2.05b# chkconfig pvfs2-server on bash-2.05b# ls -al /etc/rc.d/rc3.d/S35pvfs2-server lrwxrwxrwx 1 root root 22 Sep 21 13:11 /etc/rc.d/rc3.d/S35pvfs2-server \ -> ../init.d/pvfs2-server
This script will now automatically launch on startup and shutdown to ensure that the pvfs2-server is started and stopped gracefully. To manually start the server, you can run the following command:
bash-2.05b# /etc/rc.d/init.d/pvfs2-server start Starting PVFS2 server: [ OK ]
To manually stop the server:
bash-2.05b# /etc/rc.d/init.d/pvfs2-server stop Stopping PVFS2 server: [ OK ]