Browse Source
Fixed: If using full path to script lock file was not being detected in monitor causing the monitor to not work. This broke automatic monitoring.pull/128/head
20 changed files with 39 additions and 38 deletions
@ -3,7 +3,7 @@ |
|||||
# Server Management Script |
# Server Management Script |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://danielgibbs.co.uk |
# Website: http://danielgibbs.co.uk |
||||
# Version: 220614 |
# Version: 010814 |
||||
|
|
||||
#### Variables #### |
#### Variables #### |
||||
|
|
||||
@ -15,7 +15,7 @@ email="[email protected]" |
|||||
# Directorys |
# Directorys |
||||
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" |
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )" |
||||
selfname="$0" |
selfname="$0" |
||||
lockselfname=$(echo "${selfname}.lock"|sed 's/^\(.\{1\}\).\(.*\)/\1\2/') |
lockselfname=$(echo ".${servicename}.lock") |
||||
filesdir="${rootdir}/serverfiles" |
filesdir="${rootdir}/serverfiles" |
||||
systemdir="${filesdir}/System" |
systemdir="${filesdir}/System" |
||||
executabledir="${systemdir}" |
executabledir="${systemdir}" |
||||
|
Loading…
Reference in new issue