Asynchrones Syslogging aktiviert (Performancegruende)
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 19 Jul 2007 17:04:04 +0000 (17:04 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 19 Jul 2007 17:04:04 +0000 (17:04 +0000)
Cron.log deaktiviert.
Pakfire hat eine eigene Logdatei bekommen.
Grosse Dateien und Logs des Pakfire werden ausgelagert auf /var.
qosd sollte nun besser gekillt werden. Hartnaeckiger Bursche.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@711 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/etc/syslog.conf
config/qos/makeqosscripts.pl
config/rootfiles/ver_full/pakfire
lfs/pakfire
src/pakfire/lib/functions.pl

index bd49f61..6db4952 100644 (file)
@@ -5,22 +5,22 @@
 # Log anything (except mail) of level info or higher.
 # Don't log private authentication messages!
 # local0.* any dhcpcd log (even debug) in messages
-daemon.*;local0.*;local2.*;*.info;mail.none;authpriv.* /var/log/messages
+daemon.*;local0.*;local2.*;*.info;mail.none;authpriv.* -/var/log/messages
 
 # Log crons
-cron.*                                                 -/var/log/cron.log
+#cron.*                                                                                -/var/log/cron.log
 
 # Everybody gets emergency messages
-*.emerg                                                *
+*.emerg                                                                                *
 
 # Save boot messages also to boot.log
-local7.*                                               /var/log/boot.log
+local7.*                                                                       /var/log/boot.log
 
 # Display logs on tty12
-*.*                                                    /dev/tty12
+*.*                                                                                            /dev/tty12
 
 # Optionally log to a remote host
-#*.*                                                   @hostname.domain
+#*.*                                                                                   @hostname.domain
 
 # Postfix logs
-mail.*                                                 /var/log/mail
+mail.*                                                                         -/var/log/mail
index c3dac40..d9bb551 100644 (file)
@@ -636,7 +636,8 @@ print <<END
   ;;
   clear|stop)
        ### RESET EVERYTHING TO A KNOWN STATE
-       killall -9 qosd
+       killall qosd
+       (sleep 3 && killall -9 qosd &>/dev/null) &
        # DELETE QDISCS
        tc qdisc del dev $qossettings{'RED_DEV'} root
        tc qdisc del dev $qossettings{'IMQ_DEV'} root
index 09529db..5dddca4 100644 (file)
@@ -15,3 +15,6 @@ opt/pakfire/logs
 #opt/pakfire/meta
 opt/pakfire/pakfire
 opt/pakfire/tmp
+var/cache/pakfire
+var/log/pakfire
+var/log/pakfire.log
index 6ebd6e1..f09d18f 100644 (file)
@@ -51,11 +51,17 @@ md5 :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP)
-       -mkdir -p /opt/pakfire/{cache,db/{meta,lists,rootfiles,installed},etc,lib,logs,tmp}
+       -mkdir -p /opt/pakfire/{db/{meta,lists,rootfiles,installed},etc,lib,tmp} \
+               /var/log/pakfire /var/cache/pakfire
        cp -fRv $(DIR_SRC)/src/pakfire/* $(DIR_APP)
        mv -vf $(DIR_APP)/pakfire.conf $(DIR_APP)/etc/
        chown root.root $(DIR_APP) -R
        chmod 755 $(DIR_APP)/pakfire
+       
        -cd $(DIR_APP) && find $(DIR_APP) -name .svn -exec rm -rf {} \;
        ln -sf ../../opt/pakfire/pakfire /etc/fcron.daily/pakfire-update
+       
+       touch /var/log/pakfire.log
+       ln -sf ../../var/log/pakfire /opt/pakfire/logs
+       ln -sf ../../var/cache/pakfire /opt/pakfire/cache
        @$(POSTBUILD)
index 14edfdc..22bf669 100644 (file)
@@ -66,7 +66,7 @@ sub message {
 
 sub logger {
        my $log = shift;
-       system("logger -t pakfire \"$log\"") if "$log";
+       system("logger -f /var/log/pakfire.log -t pakfire \"$log\"") if "$log";
 }
 
 sub usage {