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.21.31 spec/functional/assets/chefinittest
chef-12.21.31-universal-mingw32 spec/functional/assets/chefinittest
chef-13.6.4-universal-mingw32 spec/functional/assets/chefinittest
chef-13.6.4 spec/functional/assets/chefinittest
chef-13.6.0-universal-mingw32 spec/functional/assets/chefinittest
chef-13.6.0 spec/functional/assets/chefinittest
chef-12.21.26 spec/functional/assets/chefinittest
chef-12.21.26-universal-mingw32 spec/functional/assets/chefinittest
chef-12.21.20-universal-mingw32 spec/functional/assets/chefinittest
chef-12.21.20 spec/functional/assets/chefinittest
chef-13.5.3-universal-mingw32 spec/functional/assets/chefinittest
chef-13.5.3 spec/functional/assets/chefinittest
chef-12.21.14-universal-mingw32 spec/functional/assets/chefinittest
chef-12.21.14 spec/functional/assets/chefinittest
chef-13.4.24-universal-mingw32 spec/functional/assets/chefinittest
chef-12.21.12-universal-mingw32 spec/functional/assets/chefinittest
chef-12.21.12 spec/functional/assets/chefinittest
chef-13.4.24 spec/functional/assets/chefinittest
chef-13.4.19-universal-mingw32 spec/functional/assets/chefinittest
chef-13.4.19 spec/functional/assets/chefinittest