[Eisfair] Aw?==?utf-8?Q?: Re: Aw: Re: Aw: Re: Aw: ?==?utf-8?Q?Re: Aw: Re: error: package ?==?utf-8?Q?database is locked

Rene Hanke Rene.Hanke at gmx.net
Mi Apr 1 15:12:02 CEST 2020


Hallo Marcus,

ich liefere hier schon mal ein paar Teilinformationen.

Also die /etc/config.d/cron enthält:

#------------------------------------------------------------------------------
# /etc/config.d/cron - configuration file for cron
#
# Creation   :  2005-03-04 max
# Last Update:  2019-12-09 xta43bl
#
# Copyright (c) 2001-2019 the eisfair team, team(at)eisfair(dot)org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#------------------------------------------------------------------------------

# cron-VERSION 2.8.4

#------------------------------------------------------------------------------
# Cron Jobs
#------------------------------------------------------------------------------

START_CRON='yes'
                                  # start cron: yes or no

CRON_N='2'
                                  # number of cron jobs to add

CRON_1_NAME=''
                                  # Use a name what ever you want, it's
only for you
CRON_1_ACTIVE='yes'
                                  # Use yes or no
CRON_1_TIMES='0 0-23/2 * * *'
                                  # Cron configuration string
CRON_1_COMMAND='/etc/cron.daily/logrotate'
                                  # Command to start with cron

CRON_2_NAME='inadyn-restart'
                                  # Use a name what ever you want, it's
only for you
CRON_2_ACTIVE='yes'
                                  # Use yes or no
CRON_2_TIMES='0 */4 * * *'
                                  # Cron configuration string
CRON_2_COMMAND='/usr/local/inadyn_restart.sh > /dev/nul'
                                  # Command to start with cron

#------------------------------------------------------------------------------
# End
#------------------------------------------------------------------------------

Da sehe ich nichts mit sleep. Das Script "inadyn_restart.sh" habe ich
nach ganz unten gepackt, das läuft aber auch schon "ewig".

Zu den Jobs in /var/cron/etc/... kann ich vermelden:

frox 2.8.25 # ls -l /var/cron/etc/
total 8
drwxr-xr-x 2 root root 4096 Mar 28 11:01 root
drwxr-xr-x 2 root root 4096 Oct 24  2016 wwwrun
frox 2.8.25 # ls -l /var/cron/etc/root
total 48
-rw-r--r-- 1 root root 482 Jul 16  2019 antispam
-rw-r--r-- 1 root root 506 Mar 28 10:59 brute_force_blocking
-rw-r--r-- 1 root root 357 Dec 15 14:55 certs
-rw-r--r-- 1 root root 268 Apr 21  2019 eisgraph
-rw-r--r-- 1 root root 154 Feb 10  2018 eisgraph_mod_lmsensors
-rw-r--r-- 1 root root 409 Mar 29 16:45 mail
-rw-r--r-- 1 root root 411 Apr  5  2019 mail-addon-certs
-rw-r--r-- 1 root root 347 Feb 24 13:38 roundcube
-rw-r--r-- 1 root root 477 Feb 16 13:35 rsnapshot
-rw-r--r-- 1 root root 143 Mar 28 11:01 smartmon
-rw-r--r-- 1 root root 366 Mar 28 10:33 update-chk
-rw-r--r-- 1 root root 346 Mar 28 10:34 updatedb
frox 2.8.25 # ls -l /var/cron/etc/wwwrun
total 0

Das sieht mir alles nach Standardkram aus?


Bzgl. Zugang spreche ich mal mit der Regierung (Ehefreundin)...


Lieber Gruß und Dank

René


- - - - - - - - - - - - -  
Hier mein "inadyn_restart.sh":

#!/bin/sh
#
# inadyn restart
#
# Variable Anfang

DATE=`date '+%d.%m.%Y-%H:%M:%S'`

EMAILABSENDER="root at home.lan"
EMAIL1="root at home.lan"
EMAIL2="EMPFÄNGER 2"
EMAIL3="EMPFÄNGER 3"

export PATH=$PATH:/sbin:/usr/sbin

# Variable Ende

function email {
(
echo "From: $EMAILABSENDER"
echo "$SUBJECT / $DATE"
echo "--------------------"
echo " inadyn restartet ausgefuehrt"
echo "--------------------"
echo "Diese Mail wurde automatisch erstellt und verschickt !!"
# echo "Ein Hoch auf den Admin ;-))"
) | mailx -s "$SUBJECT / $DATE" $EMAIL1
}


function inadynrestart {
/etc/init.d/inadyn restart
echo "RESTART erfolgt"
}

#
# Hauptprogramm
#

inadynrestart
SUBJECT="inadyn restartet"
# email
exit 0


Mehr Informationen über die Mailingliste Eisfair