Archive for ◊ septiembre, 2013 ◊

• martes, septiembre 24th, 2013

Entre las principales tareas de mantenimiento para DSpace, tenemos las del archivo crontab siguiente:

# Send out subscription e-mails at 01:00 every day
0 1 * * * /var/dspace/bin/dspace sub-daily
# Run the media filter at 02:00 every day
0 2 * * * /var/dspace/bin/dspace filter-media
# Run the checksum checker at 03:00
0 3 * * * /var/dspace/bin/dspace checker -lp
# Mail the results to the sysadmin at 04:00
0 4 * * * /var/dspace/bin/dspace checker-emailer -c
# Run stat analysis
0 1 * * * /var/dspace/bin/dspace stat-general
0 1 * * * /var/dspace/bin/dspace stat-monthly
0 2 * * * /var/dspace/bin/dspace stat-report-general
0 2 * * * /var/dspace/bin/dspace stat-report-monthly
# Generate sitemaps
0 6 * * * /var/dspace/bin/dspace generate-sitemaps
0 22 * * * /var/dspace/bin/dspace itemcounter

Category: Uncategorized  | Comments off
• domingo, septiembre 22nd, 2013

1.- Crear archivo tomcat en la ruta /etc/rc.d/init.d

#!/bin/bash
#
# Iniciación automatica de TOMCAT6D
#
# chkconfig: – 55 25
# description: Demonio de iniciación TOMCAT7D 7.0.29
#
# processname: tomcat7d
# pidfile: /var/run/tomcat7d.pid

#export JAVA_HOME=/usr/java/jdk1.6.0_20
export CATALINA_HOME=/var/apache-tomcat-7.0.29
start(){
echo «Iniciando Tomcat7»
$CATALINA_HOME/bin/startup.sh
}

stop() {
echo «Deteniendo Tomcat7»
$CATALINA_HOME/bin/shutdown.sh
}
restart(){
stop
start
}

# See how we were called.
case $1 in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo «Utilice los Parámetros: $0 {start|stop|restart}»
exit 1
esac
exit 0

2.- Darle permisos de ejecución

3.- chkconfig –add tomcat

4.- chkconfig tomcat on

 

Category: Uncategorized  | Tags: ,  | Comments off