]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 bd49f61ed90679b11d6f80b6c29a8047bbf3c749..6db495233f3899a0e40706bd1fa7cd9f269f286b 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 c3dac4044afede0a14f051fe76d8b58ff89c6e4a..d9bb5518e54c1548b1e74ad8416146724e256333 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 09529db89be6044a20fff4cd32531bacccedfe69..5dddca4cf355cb8f0cdfba3a8871a390de32faab 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 6ebd6e1b15ba279a74135227ab1bd35cc518ed3e..f09d18fdefe574ec06876a6d4dacbaaf3505d126 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 14edfdcc9c6cf5f093950a59f27787b36f922719..22bf66947b88860b4abec94cdcd6e49ba9746f8f 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 {