Generate PID name based on script name

Fixes #533
This commit is contained in:
Sebastian Grewe 2013-07-30 10:18:49 +02:00
parent 59534d1c02
commit 527354f64e

View File

@ -9,9 +9,6 @@
# PHP Detections, if this fails hard code it
PHP_BIN=$( which php )
# Path to PID file, needs to be writable by user running this
PIDFILE='/tmp/mmcfe-ng-cron.pid'
# List of cruns to execute
CRONS="findblock.php proportional_payout.php pplns_payout.php pps_payout.php blockupdate.php manual_payout.php auto_payout.php tickerupdate.php notifications.php statistics.php archive_cleanup.php"
@ -24,6 +21,12 @@ VERBOSE="0"
# #
################################################################
# My own name
ME=$( basename $0 )
# Path to PID file, needs to be writable by user running this
PIDFILE="/tmp/$ME.pid"
# Overwrite some settings via command line arguments
while getopts "hvp:" opt; do
case "$opt" in