summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-20 19:23:03 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-20 19:30:43 -0800
commit5cd567e34183b13c69915cd2ba7bbdb72b857fee (patch)
tree3a091965f5a44ec49ca47ac54b754c39486341fd
parentac1a4f9069b5eed90cb47c5d08a4a4d058f91c13 (diff)
downloadvyatta-cfg-system-5cd567e34183b13c69915cd2ba7bbdb72b857fee.tar.gz
vyatta-cfg-system-5cd567e34183b13c69915cd2ba7bbdb72b857fee.zip
Change for rsyslog reload
Bug 6663 (cherry picked from commit fa7d81f125033b7ed4bd549eb6905918612a6877)
-rwxr-xr-xscripts/system/vyatta_update_logrotate.pl2
-rw-r--r--sysconf/logrotate_messages2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/system/vyatta_update_logrotate.pl b/scripts/system/vyatta_update_logrotate.pl
index 6e5c20cd..a3a879ba 100755
--- a/scripts/system/vyatta_update_logrotate.pl
+++ b/scripts/system/vyatta_update_logrotate.pl
@@ -35,7 +35,7 @@ $log_file {
rotate $files
size=${size}k
postrotate
- kill -HUP `cat /var/run/rsyslogd.pid`
+ invoke-rc.d rsyslog reload >/dev/null
endscript
}
EOF
diff --git a/sysconf/logrotate_messages b/sysconf/logrotate_messages
index c2f662ff..7ffa559b 100644
--- a/sysconf/logrotate_messages
+++ b/sysconf/logrotate_messages
@@ -4,6 +4,6 @@
rotate 10
size=1000k
postrotate
- kill -HUP `cat /var/run/syslogd.pid`
+ invoke-rc.d rsyslog reload >/dev/null
endscript
}