Changeset 6932 for lliurex-statistics


Ignore:
Timestamp:
Feb 28, 2018, 12:34:42 PM (21 months ago)
Author:
mabarracus
Message:

Fix writing pid file

Location:
lliurex-statistics/trunk/fuentes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-statistics/trunk/fuentes/debian/changelog

    r6929 r6932  
     1lliurex-statistics (0.5.2) xenial; urgency=medium
     2
     3  * Fix writing pid file
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Wed, 28 Feb 2018 11:38:05 +0100
     6
    17lliurex-statistics (0.5.1) xenial; urgency=medium
    28
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/etc/init.d/analytics

    r2966 r6932  
    7373        #   2 if daemon could not be stopped
    7474        #   other if a failure occurred
    75         start-stop-daemon --stop --quiet --retry=INT/5/KILL/2 --pidfile "$PIDFILE" --name "$NAME"
    76         RETVAL="$?"
    77         [ "$RETVAL" = 2 ] && return 2
    78         start-stop-daemon --stop --quiet --oknodo --retry=TERM/5/KILL/2 --exec "$DAEMON"
    79         [ "$?" = 2 ] && return 2
     75        start-stop-daemon --stop --quiet --retry=TERM/5/KILL/2 --pidfile "$PIDFILE"
     76        RETVAL=$?
    8077        # Many daemons don't delete their pidfiles when they exit.
    8178        rm -f "$PIDFILE"
    82         return "$RETVAL"
     79        return $RETVAL
    8380}
    8481
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/usr/sbin/analytics

    r6929 r6932  
    4646# FILELOCK = '/tmp/analytics'
    4747
    48 # PIDFILE = '/var/run/analitics.pid'
     48PIDFILE = '/var/run/analytics.pid'
     49FILELOCK = '/var/run/analytics.pid'
     50
    4951# PIDFILE = '/tmp/analitics.pid'
    5052
     
    229231    filelock = get_var_value('filelock', CONFIG)
    230232    if not filelock:
    231         filelock = '/var/run/analytics'
     233        filelock = '/var/run/analytics.pid'
    232234
    233235    try:
Note: See TracChangeset for help on using the changeset viewer.