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.10.24 spec/functional/assets/chefinittest
chef-12.10.24-universal-mingw32 spec/functional/assets/chefinittest
chef-12.9.41 spec/functional/assets/chefinittest
chef-12.9.41-universal-mingw32 spec/functional/assets/chefinittest
chef-12.9.38 spec/functional/assets/chefinittest
chef-12.9.38-universal-mingw32 spec/functional/assets/chefinittest
chef-12.7.2 spec/functional/assets/chefinittest
chef-12.7.2-universal-mingw32 spec/functional/assets/chefinittest
chef-12.6.0 spec/functional/assets/chefinittest
chef-12.6.0-universal-mingw32 spec/functional/assets/chefinittest
chef-12.5.1-universal-mingw32 spec/functional/assets/chefinittest
chef-12.5.1 spec/functional/assets/chefinittest
chef-12.4.3-universal-mingw32 spec/functional/assets/chefinittest
chef-12.4.3 spec/functional/assets/chefinittest
chef-12.4.2-universal-mingw32 spec/functional/assets/chefinittest
chef-12.4.2 spec/functional/assets/chefinittest
chef-12.5.0.alpha.1 spec/functional/assets/chefinittest
chef-12.4.1-universal-mingw32 spec/functional/assets/chefinittest
chef-12.4.1 spec/functional/assets/chefinittest
chef-12.4.0 spec/functional/assets/chefinittest