summaryrefslogtreecommitdiffstats
path: root/abs/core/rsyslog/rsyslog.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-07 19:18:43 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-07 19:18:43 (GMT)
commitdb5e198de1e368a2202460089f9d00a52947d4f6 (patch)
tree0d827237ce18a3b1632feea285d10924dc755e5e /abs/core/rsyslog/rsyslog.install
parent4e8d09d05069baf219f474509a52041c863cca5d (diff)
downloadlinhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.zip
linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.tar.gz
linhes_pkgbuild-db5e198de1e368a2202460089f9d00a52947d4f6.tar.bz2
rsyslog: first build, this replaces syslog-ng
/var/log will now have the format of /var/log/$DATE/$log_files
Diffstat (limited to 'abs/core/rsyslog/rsyslog.install')
-rw-r--r--abs/core/rsyslog/rsyslog.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/rsyslog/rsyslog.install b/abs/core/rsyslog/rsyslog.install
new file mode 100644
index 0000000..2153832
--- /dev/null
+++ b/abs/core/rsyslog/rsyslog.install
@@ -0,0 +1,16 @@
+# arg 1: the new package version
+# arg 2: the old package version
+
+post_install() {
+ remove_service.sh syslog-ng
+ add_service.sh rsyslog
+ if [ ! -e /var/log/old_syslog ]
+ then
+ mkdir -p /var/log/old_sysng
+ mv /var/log/*log* /var/log/old_sysng
+ echo "#########################################"
+ echo "/var/log/old_sysng contains old log files"
+ echo "it may be removed at your convenience"
+ echo "#########################################"
+ fi
+}