# 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
;;
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
$(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)