|
Resetowanie się samoistne Apache2
4fmariusz - 22-02-2009 12:00
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:
Proszę o pomoc. Pozdrawiam.
Utumno - 22-02-2009 13:29
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 - 22-02-2009 13:38
Tak: [Dodano: 2009-02-22, 13:55] W /etc/cron.weekly/ mam tylko to: sysklogd:
#! /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 #!/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 ;/ [Sun Mar 01 06:25:52 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations
zanotowane.pldoc.pisz.plpdf.pisz.plminister.pev.pl
|