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

Fix writing pid file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.