This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uses a PID file to add daemon-like behavior to an arbitrary program. | |
################################################################################ | |
# RHEL 6 doesn't include `realpath' in coreutils | |
function expandDir { | |
set +x | |
typeset DIR=$1 | |
if [[ ! -d $DIR ]]; then | |
DIR=${1%/*} |