Sha256: f4cbbd178dc2eab4963291ce725ffe30c8daaff70a25d3d71733c60ed05e1aa9

Contents?: true

Size: 718 Bytes

Versions: 241

Compression:

Stored size: 718 Bytes

Contents

#!/bin/ksh

TMPDIR="${TMPDIR:-/tmp}"

function create_chef_txt {
        touch $TMPDIR/chefinittest.txt
}

function delete_chef_txt {
        rm $TMPDIR/chefinittest.txt
}

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

case "$1" in
start )
        create_chef_txt
        ;;
stop )
        delete_chef_txt
        ;;
status )
        [ -f $TMPDIR/chefinittest.txt ] || [ -f $TMPDIR/chefinittest_reload.txt ] || [ -f $TMPDIR/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

241 entries across 241 versions & 1 rubygems

Version Path
chef-17.2.29 spec/functional/assets/chefinittest
chef-17.1.35-universal-mingw32 spec/functional/assets/chefinittest
chef-17.1.35 spec/functional/assets/chefinittest
chef-17.0.242-universal-mingw32 spec/functional/assets/chefinittest
chef-17.0.242 spec/functional/assets/chefinittest
chef-15.17.4-universal-mingw32 spec/functional/assets/chefinittest
chef-15.17.4 spec/functional/assets/chefinittest
chef-16.13.16-universal-mingw32 spec/functional/assets/chefinittest
chef-16.13.16 spec/functional/assets/chefinittest
chef-16.12.3-universal-mingw32 spec/functional/assets/chefinittest
chef-16.12.3 spec/functional/assets/chefinittest
chef-15.16.7-universal-mingw32 spec/functional/assets/chefinittest
chef-15.16.7 spec/functional/assets/chefinittest
chef-15.16.4-universal-mingw32 spec/functional/assets/chefinittest
chef-15.16.4 spec/functional/assets/chefinittest
chef-15.16.2-universal-mingw32 spec/functional/assets/chefinittest
chef-15.16.2 spec/functional/assets/chefinittest
chef-16.11.7-universal-mingw32 spec/functional/assets/chefinittest
chef-16.11.7 spec/functional/assets/chefinittest
chef-16.10.17-universal-mingw32 spec/functional/assets/chefinittest