Project

General

Profile

Evolution #461

Refactorisation du script lance-Maj-blacklist.sh

Added by Emmanuel GARETTE over 12 years ago. Updated over 11 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
04/21/2010
Due date:
% Done:

100%

Distribution:

Description

Toutes les nuits à minuit (crontab de conf-amon), le script "lance-Maj-blacklist.sh" est lancé :

# Mise à jour des backlists toutes les nuits
00 00 * * * root /usr/share/eole/lance-Maj-blacklist.sh >/dev/null 2>&1

Ce script (eole-dansguardian) tire au hazard une heure dans la journée :

HMAJ=$[( $RANDOM % 5) +1]
MMAJ=$[( $RANDOM % 60) +1]

Lance un at sur cette heure pour que la mise à jour se fasse.

Je pense qu'il faudrait supprimer l'entrée dans le crontab et faire une fonction creole proche de "creole/maj.py".

Ainsi, on pourra savoir par avance quand se télécharge les blacklists (tous les jours à la même heure) et ca sera plus propre.


Related issues

Related to creole - Evolution #1151: Refactorer creole/maj.py Fermé 10/28/2010
Related to creole - Anomalie #1262: Gestion des sauvegardes et des cron Fermé 12/06/2010

Associated revisions

Revision f2b4fd82 (diff)
Added by Emmanuel GARETTE over 11 years ago

ajout du cron blacklist + suppression de lance blacklist (fixes #461)

Revision c225e945
Added by Alexandre Delaunay over 6 years ago

Merge branch 'korial29-0.91-slaGti'; see #461

Revision 7d598dae (diff)
Added by Alexandre Delaunay over 6 years ago

big fixes for SLA/SLT, calendars_id up in sla, review time computation in itilobject, see #461

Revision fb680f0c (diff)
Added by tsmr over 6 years ago

Rename getNextSlaLevel -> getNextSltLevel
see #461

Revision 397aceb8 (diff)
Added by tsmr over 6 years ago

Minor fix - locale & display
see #461

Revision bdc9b284 (diff)
Added by Alexandre Delaunay over 6 years ago

fix confir for slt deletion; see #461

Revision 77eff264 (diff)
Added by tsmr over 6 years ago

add stats into ticket. see #461

Revision 99f78d1c (diff)
Added by yllen over 6 years ago

tsmr to review - see #461

Revision 8ba84b5d (diff)
Added by tsmr over 6 years ago

Fix stats. see #461

Revision 3ae49e89 (diff)
Added by tsmr about 6 years ago

Fix computeDate see #461

Revision cfb71921 (diff)
Added by Alexandre Delaunay about 6 years ago

restore slalevels_id in glpi_tickets (#1025)

now named ttr_slalevels_id according to its usage
Its purpose is to store last sla level when ticket is set to waiting
status.
When the ticket return from waiting, we reinsert in
glpi_slalevels_tickets this value.

see #461

History

#1 Updated by Emmanuel GARETTE about 12 years ago

  • Target version changed from 2.3 BETA 1 to 2.3 BETA 2

#2 Updated by Luc Bourdot about 12 years ago

  • Target version changed from 2.3 BETA 2 to 2.3 BETA 3 => publiée en Beta 4

#3 Updated by Joël Cuissinat almost 12 years ago

  • Target version changed from 2.3 BETA 3 => publiée en Beta 4 to EOLE 2.3 RC1

#4 Updated by Jerome Soyer almost 12 years ago

  • Target version changed from EOLE 2.3 RC1 to EOLE 2.3 RC2

#5 Updated by Emmanuel GARETTE over 11 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#6 Updated by Joël Cuissinat over 11 years ago

  • Status changed from Résolu to Fermé
  • Assigned To set to Emmanuel GARETTE
root@amonecole144:~# dpkg -S /usr/share/eole/schedule/post/majblacklist
eole-proxy: /usr/share/eole/schedule/post/majblacklist

Also available in: Atom PDF