Sha256: 2b50aebe1a62eba6e05fa0f6e08e59b367303e86b48c4df64952d00c843c15e3

Contents?: true

Size: 671 Bytes

Versions: 111

Compression:

Stored size: 671 Bytes

Contents

#!/bin/ksh

function create_chef_txt {
        touch /tmp/chefinittest.txt
}

function delete_chef_txt {
        rm /tmp/chefinittest.txt
}

function rename_chef_txt {
        mv /tmp/chefinittest.txt /tmp/$1
}

case "$1" in
start )
        create_chef_txt
        ;;
stop )
        delete_chef_txt
        ;;
status )
        [ -f /tmp/chefinittest.txt ] || [ -f /tmp/chefinittest_reload.txt ] || [ -f /tmp/chefinittest_restart.txt ]
        ;;
reload )
        rename_chef_txt "chefinittest_reload.txt"
        ;;
restart )
        rename_chef_txt "chefinittest_restart.txt"
        ;;
* )
        echo "Usage: $0 (start | stop | restart | reload)"
        exit 1
esac

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
chef-12.4.0-universal-mingw32 spec/functional/assets/chefinittest
chef-12.4.0.rc.2 spec/functional/assets/chefinittest
chef-12.4.0.rc.2-universal-mingw32 spec/functional/assets/chefinittest
chef-12.4.0.rc.0 spec/functional/assets/chefinittest
chef-12.4.0.rc.0-universal-mingw32 spec/functional/assets/chefinittest
chef-12.3.0-x86-mingw32 spec/functional/assets/chefinittest
chef-12.3.0 spec/functional/assets/chefinittest
chef-12.3.0.rc.0-x86-mingw32 spec/functional/assets/chefinittest
chef-12.3.0.rc.0 spec/functional/assets/chefinittest
chef-12.2.1-x86-mingw32 spec/functional/assets/chefinittest
chef-12.2.1 spec/functional/assets/chefinittest
chef-12.2.0.rc.2-x86-mingw32 spec/functional/assets/chefinittest
chef-12.2.0.rc.2 spec/functional/assets/chefinittest
chef-12.2.0.rc.1-x86-mingw32 spec/functional/assets/chefinittest
chef-12.2.0.rc.1 spec/functional/assets/chefinittest
chef-12.1.2 spec/functional/assets/chefinittest
chef-12.1.2-x86-mingw32 spec/functional/assets/chefinittest
chef-12.1.1-x86-mingw32 spec/functional/assets/chefinittest
chef-12.1.1 spec/functional/assets/chefinittest
chef-12.1.0-x86-mingw32 spec/functional/assets/chefinittest