source: bootscripts-standard/cblfs/init.d/momclient@ 7254832

Last change on this file since 7254832 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.

  • Property mode set to 100644
File size: 709 bytes
RevLine 
[7df280d]1#!/bin/bash
[006050c]2# Begin $rc_base/init.d/pbsclient
3#
4# Based on sysklogd script from LFS-3.1 and earlier.
5# Written by Andrew "Weibullguy" Rowland <darowland@ieee.org>
6#
7# Date: 2007-10-21
8
9. /etc/sysconfig/rc
10. $rc_functions
11
12# Read in the command arguments
13case "$1" in
14 start)
15 boot_mesg "Starting TORQUE MOM Client..."
16 loadproc /usr/sbin/pbs_mom
17 ;;
18 stop)
19 boot_mesg "Stopping TORQUE MOM Client ..."
20 killproc pbs_mom
21 ;;
22 restart)
23 $0 stop
24 $0 start
25 ;;
26 status)
27 statusproc /usr/sbin/pbs_mom
28 ;;
29 *)
30 echo "Usage: $0 {start|stop|restart|status}"
31 exit 1
32esac
33
34exit 0
35
36# End $rc_base/init.d/pbsclient
Note: See TracBrowser for help on using the repository browser.