Project

General

Profile

lighttpd "gracefully" shutting down by itself at 06:25:02 every 7 days

Added by raab over 16 years ago

Hi there,

Running Debian Lenny x64 and lighttpd-1.4.19 (ssl)

I've noticed as of late that lighttpd randomly shuts down every 7 days without me initiating one.

Error.log
2009-02-01 06:25:02: (server.c.1361) [note] graceful shutdown started
2009-02-01 06:25:02: (server.c.1475) server stopped by UID = 0 PID = 16541

2009-01-25 06:25:02: (server.c.1361) [note] graceful shutdown started
2009-01-25 06:25:02: (server.c.1475) server stopped by UID = 0 PID = 18108

2009-01-18 06:25:02: (server.c.1361) [note] graceful shutdown started
2009-01-18 06:25:02: (server.c.1475) server stopped by UID = 0 PID = 6688

There's nothing in access.log which corresponds to it shutting down at 6:25

root@sour:/etc/cron.daily# ls
apt aptitude bsdmainutils lighttpd logrotate man-db ntp standard sysklogd

root@sour:/etc/cron.weekly# ls
man-db sysklogd

After further looking it seems to correlate with the syslogd restart?

root@sour:/var/log# cat messages | grep 06:25
Feb 2 06:25:02 ns352248 syslogd 1.5.0#5: restart.

How do I fix this?


Replies (3)

RE: lighttpd "gracefully" shutting down by itself at 06:25:02 every 7 days - Added by icy over 16 years ago

Lighty certainly doesn't do this by itself. It surely is some cronjob of yours - maybe logrotate?
Anyways, we can't tell you what is causing it. Sorry.

RE: lighttpd "gracefully" shutting down by itself at 06:25:02 every 7 days - Added by Olaf-van-der-Spek over 16 years ago

$ cat /etc/logrotate.d/lighttpd 
/var/log/lighttpd/*.log {
        weekly
        missingok
        copytruncate
        rotate 12
        compress
        notifempty
        sharedscripts
        postrotate
           if [ -f /var/run/lighttpd.pid ]; then \
             if [ -x /usr/sbin/invoke-rc.d ]; then \
                invoke-rc.d lighttpd reload > /dev/null 2>&1; \
             else \
                /etc/init.d/lighttpd reload > /dev/null 2>&1; \
             fi; \
           fi;
        endscript
}

RE: lighttpd "gracefully" shutting down by itself at 06:25:02 every 7 days - Added by raab about 16 years ago

I suspect it's because I have an ssl cert so have to type in the pass phrase when lightty starts

    (1-3/3)