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-18.6.2-universal-mingw-ucrt spec/functional/assets/chefinittest
chef-18.6.2 spec/functional/assets/chefinittest
chef-17.10.163-universal-mingw32 spec/functional/assets/chefinittest
chef-17.10.163 spec/functional/assets/chefinittest
chef-18.5.0-x64-mingw-ucrt spec/functional/assets/chefinittest
chef-18.5.0 spec/functional/assets/chefinittest
chef-18.4.12-x64-mingw-ucrt spec/functional/assets/chefinittest
chef-18.4.12 spec/functional/assets/chefinittest
chef-17.10.122-universal-mingw32 spec/functional/assets/chefinittest
chef-17.10.122 spec/functional/assets/chefinittest
chef-17.10.114-universal-mingw32 spec/functional/assets/chefinittest
chef-17.10.114 spec/functional/assets/chefinittest
chef-18.4.2-x64-mingw-ucrt spec/functional/assets/chefinittest
chef-18.4.2 spec/functional/assets/chefinittest
chef-17.10.95-universal-mingw32 spec/functional/assets/chefinittest
chef-17.10.95 spec/functional/assets/chefinittest
chef-18.3.0-x64-mingw-ucrt spec/functional/assets/chefinittest
chef-18.3.0 spec/functional/assets/chefinittest
chef-17.10.68-universal-mingw32 spec/functional/assets/chefinittest
chef-18.2.7-x64-mingw-ucrt spec/functional/assets/chefinittest