Ignore:
Timestamp:
Nov 30, 2016, 6:20:04 PM (3 years ago)
Author:
mabarracus
Message:

Fix debugging mode into collector
Fix n4d checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/etc/init.d/analytics

    r2962 r2966  
    2121SCRIPTNAME=/etc/init.d/"$NAME"
    2222STATUS_FILE=/etc/lliurex-analytics/status
     23LOCK_FILE=/var/run/analytics.lock
    2324
    2425# Exit if the package is not installed
     
    3940    fi
    4041}
     42remove_locks()
     43{
     44    if [ -f "${LOCK_FILE}" ]; then
     45        log_success_msg "Removing lockfile ${LOCK_FILE}"
     46        rm -f ${LOCK_FILE}
     47    fi
     48}
    4149#
    4250# Function that starts the daemon/service
     
    4957        #   2 if daemon could not be started
    5058        set_acls
     59        remove_locks
    5160        start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- \
    5261                $EXTRAOPTIONS \
Note: See TracChangeset for help on using the changeset viewer.