Commit 0ce2d5b3 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Remove stated entry from /etc/syslog.conf since we no longer use

syslog for stated. Since we tell newsyslog to send a signal to a
specific process, syslog never closes it handle on the logfile.
parent 80450873
# Remove stated from syslog.conf, since we no longer use syslog.
# It holds open the log file when it is rolled.
use strict;
use libinstall;
my $SYSLOG_CONF = "/etc/syslog.conf";
sub InstallUpdate($$)
my ($version, $phase) = @_;
# If something should run in the pre-install phase.
if ($phase eq "pre") {
Phase "stated", "Updating stated logging", sub {
Phase "syslog.conf", "Updating $SYSLOG_CONF", sub {
PhaseSkip("Already updated")
if !`grep 'stated' $SYSLOG_CONF`;
ExecQuietFatal("sed -i .orig -e '/stated/d' $SYSLOG_CONF");
Phase "syslogd", "Restarting syslogd", sub {
# If something should run in the post-install phase.
if ($phase eq "post") {
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment