OTRS stoppen für Backup.pl

Hilfe zu Znuny Problemen aller Art
Locked
Der_Dennis
Znuny newbie
Posts: 1
Joined: 04 Feb 2012, 19:50
Znuny Version: 3.0.11
Real Name: Dennis

OTRS stoppen für Backup.pl

Post by Der_Dennis »

Hallo,

ich hatte bisher OTRS 3.0.9 auf Debian Lenny.

Dort habe ich jede Nacht folgende Befehle ausgeführt:

Code: Select all

59 2 * * *  /etc/init.d/otrs2 stop
0 3 * * *   /opt/otrs/scripts/backup.pl -d /home/backups/otrs/ -c gzip -r 5 -t fullbackup
20 3 * * *  /etc/init.d/otrs2 start
Jetzt habe ich OTRS 3.0.11 auf Debian Squeeze und es funktioniert nicht mehr. Ich habe nichtmal mehr das Script "otrs2"
Diese hab ich mir nun vom alten System kopiert und die Pfade angepasst. Wenn ich es ausführe, kommt keine Fehlermeldung, aber OTRS stoppt auch nicht.
Und wenn es läuft, kann das Backupscript nicht vernünftig durchlaufen.

Kann mir da jemand helfen?

Hier noch der Inhalt der otrs2 Datei:

Code: Select all

#! /bin/sh

### BEGIN INIT INFO
# Provides:          otrs2
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: switches otrs2 from maintainance into active mode and back
### END INIT INFO


case "$1" in
    start)
    if [ -L /opt/otrs/var/httpd/htdocs/maintainance.html ]; then
        rm  /opt/otrs/var/httpd/htdocs/maintainance.html
    fi
    ln -s /etc/otrs/cron /etc/cron.d/otrs
    ;;

    stop)
    ln -s /etc/otrs/maintainance.html /opt/otrs/var/httpd/htdocs/
    if [ -L /etc/cron.d/otrs ]; then
      rm /etc/cron.d/otrs
    fi
    ;;

    restart|force-reload|reload)
    ;;

    *)
        echo "Usage: $0 {start|stop|restart|force-reload|reload}" >&2
        exit 1
    ;;
esac

exit 0
Gruß Dennis
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS stoppen für Backup.pl

Post by jojo »

wie hast Du das neue installiert? OTRS braucht eigentlich kein init script. Auch ein Stoppen für das Backup ist normalerweise nicht nötig.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked