- Timestamp:
- Nov 30, 2016, 4:04:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-statistics/trunk/fuentes/lliurex-statistics.install/etc/init.d/analytics
r2776 r2962 20 20 PIDFILE=/var/run/"$NAME".pid 21 21 SCRIPTNAME=/etc/init.d/"$NAME" 22 STATUS_FILE=/etc/lliurex-analytics/status 22 23 23 24 # Exit if the package is not installed … … 30 31 . /lib/lsb/init-functions 31 32 33 set_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 } 32 41 # 33 42 # Function that starts the daemon/service … … 39 48 # 1 if daemon was already running 40 49 # 2 if daemon could not be started 50 set_acls 41 51 start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- \ 42 52 $EXTRAOPTIONS \
Note: See TracChangeset
for help on using the changeset viewer.