diff --git a/service.sh b/service.sh index 12b3b0b96..929c319e9 100755 --- a/service.sh +++ b/service.sh @@ -42,7 +42,7 @@ start() { if [ $? == '0' ];then success "$jump_start" if [ ! -e $lockfile ]; then - lockfile_dir=`basename $lockfile` + lockfile_dir=`dirname $lockfile` mkdir -pv $lockfile_dir fi touch "$lockfile"