Resetowanie si

Konfiguracja serwerów, usług, itp.
4fmariusz
Posty: 7
Rejestracja: 21 października 2008, 19:52

Resetowanie się samoistne Apache2

Post autor: 4fmariusz »

Witam.
Mam problem z apache2 taki, że co tydzień resetuje się. Mam napisane skrypty www do uruchomienia programu. Jak apache2 zresetuje się to pada razem z nim uruchomiony program.
W error.log znalazłem to:
[Sun Feb 22 06:25:55 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations
Proszę o pomoc.
Pozdrawiam.
Utumno
Beginner
Posty: 432
Rejestracja: 09 listopada 2008, 13:04
Lokalizacja: Gdansk

Post autor: Utumno »

To zawsze sie dzieje o 6:25 rano?

Poogladaj sobie skrypty crona; jak jestes pewien, ze to zawsze dzieje sie co tydzien o 6:25 rano, to pierwszym podejrzanym bylyby skrypty z /etc/cron.weekly/.
4fmariusz
Posty: 7
Rejestracja: 21 października 2008, 19:52

Post autor: 4fmariusz »

Tak:
[Sun Dec 21 06:25:20 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations
[Sun Dec 14 06:25:22 2008] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations


[Dodano: 2009-02-22, 13:55]
W /etc/cron.weekly/ mam tylko to:
sysklogd:

Kod: Zaznacz cały

#! /bin/sh

# sysklogd	Cron script to rotate system log files weekly.
#
#		If you want to rotate logfiles daily, edit
#		this script and /etc/cron.daily/sysklogd to get
#		the logfiles in sync (they must not occur in both
#		files).
#
#		This is a configration file.  You are invited to edit
#		it and maintain it on your own.  You'll have to do
#		that if you don't like the default policy
#		wrt. rotating logfiles (i.e. with large logfiles
#		weekly and daily rotation may interfere).  If you edit
#		this file and don't let dpkg upgrade it, you have full
#		control over it.  Please read the manpage to
#		syslogd-listfiles.
#
#		Written by Ian A. Murdock <imurdock@debian.org>.
#		$Id: cron.weekly,v 1.10 2004-03-31 16:18:15 joey Exp $

test -x /usr/sbin/syslogd-listfiles || exit 0
test -x /sbin/syslogd || exit 0
test -f /usr/share/sysklogd/dummy || exit 0

set -e

cd /var/log
for LOG in `syslogd-listfiles --weekly`
do
   if [ -s $LOG ]; then
      savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
   fi
done

# Restart syslogd
#
/etc/init.d/sysklogd reload-or-restart > /dev/null
man-db

Kod: Zaznacz cały

#!/bin/sh
#
# man-db cron weekly

set -e

if ! [ -d /var/cache/man ]; then
    # Recover from deletion, per FHS.
    mkdir -p /var/cache/man
    chown man:root /var/cache/man
    chmod 2755 /var/cache/man
fi

# regenerate man database
if [ -x /usr/bin/mandb ]; then
    # --pidfile /dev/null so it always starts; mandb isn't really a daemon,
    # but we want to start it like one.
    start-stop-daemon --start --pidfile /dev/null \
		      --startas /usr/bin/mandb --oknodo --chuid man \
		      -- --quiet
fi

exit 0


[ Dodano: 2009-03-01, 13:52 ]
Dziś rano znowu to samo ;/

Kod: Zaznacz cały

[Sun Mar 01 06:25:52 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations
ODPOWIEDZ