Changeset 994c44e9c01b368bd18681bfb1fa4faafd8aae16

Show
Ignore:
Timestamp:
07/13/12 19:08:02 (2 years ago)
Author:
Mark Harrison <mark@mivok.net>
git-committer:
Mark Harrison <mark@mivok.net> 1342206482 -0700
git-parent:

[bf8bc6d42158a03d5e3efdb4854e64f37e71ee70], [9bd090f6f6d07ef0c77755cb956680ad636036af]

git-author:
Mark Harrison <mark@mivok.net> 1342206482 -0700
Message:

Merge pull request #14 from keithf4/master

Fix redhat init script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • resources/resmon_redhat_rc

    r500d401 r9bd090f  
    11#!/bin/bash 
    22# 
    3 # resmon2       Starts resmon2
     3# resmon       Starts resmon
    44# 
    55# 
     
    88# checks.  it should always be running when the system is in operation. 
    99### BEGIN INIT INFO 
    10 # Provides: $resmon2 
     10# Provides: $resmon 
    1111### END INIT INFO 
    1212 
     
    1414. /etc/init.d/functions 
    1515 
    16 RESMON_DIR=/opt/resmon2 
     16RESMON_DIR=/opt/resmon 
    1717RESMON_CONF=$RESMON_DIR/resmon.conf 
    1818RESMON_BIN=$RESMON_DIR/resmon 
    19 RESMON_LOCK=/var/lock/subsys/resmon2 
     19RESMON_LOCK=/var/lock/subsys/resmon 
    2020 
    2121[ -f $RESMON_BIN ] || exit 0 
     
    2727 
    2828start() { 
    29         echo -n $"Starting resmon2: " 
     29        echo -n $"Starting resmon: " 
    3030        daemon $RESMON_BIN 
    3131        RETVAL=$? 
     
    3535} 
    3636stop() { 
    37         echo -n $"Shutting down resmon2: " 
     37        echo -n $"Shutting down resmon: " 
    3838        killproc $RESMON_BIN 
    3939        echo 
     
    4343} 
    4444rhstatus() { 
    45         status resmon2 
     45        status resmon 
    4646} 
    4747restart() { 
     
    5050} 
    5151reload() { 
    52         echo -n $"Reloading resmon2: " 
     52        echo -n $"Reloading resmon: " 
    5353        killproc $RESMON_BIN -HUP 
    5454        echo