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

Add debug verbosity
Fixes confirmator logic
Fixes acl's

File:
1 edited

Legend:

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

    r2776 r2962  
    2020PIDFILE=/var/run/"$NAME".pid
    2121SCRIPTNAME=/etc/init.d/"$NAME"
     22STATUS_FILE=/etc/lliurex-analytics/status
    2223
    2324# Exit if the package is not installed
     
    3031. /lib/lsb/init-functions
    3132
     33set_acls()
     34{
     35    if [ -w "${STATUS_FILE}" ]; then
     36        # fixed group 10003 for teachers into ldap
     37        setfacl -m g:10003:rw ${STATUS_FILE}
     38        setfacl -m g:adm:rw ${STATUS_FILE}
     39    fi
     40}
    3241#
    3342# Function that starts the daemon/service
     
    3948        #   1 if daemon was already running
    4049        #   2 if daemon could not be started
     50        set_acls
    4151        start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- \
    4252                $EXTRAOPTIONS \
Note: See TracChangeset for help on using the changeset viewer.