Merge pull request #534 from TheSerapher/issue-533

Generate PID name based on script name
This commit is contained in:
Sebastian Grewe 2013-07-30 01:19:44 -07:00
commit 8f28b3c3d6

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