Alexander, thanks for these suggestions. Can you please attach your file
changes as patches? A good way to make a patch is: diff -Nurp old-file
new-file. See also https://wiki.ubuntu.com/UbuntuDevelopment

I have just been looking at the same fix_log_ownership function. To
speed it up further, we could get rid of calling syslogd-files, and
parse the configuration file ourselves:

chown -f :adm $(awk '/^[^#]/{gsub("^-","",$2); if
(match($2,"^/var/log")) print $2 }' /etc/syslog.conf)

This speeds up execution 10-20 times. It would also avoid using perl in
the boot which saves memory and time.

But the right fix would to make sure these files are created with the
right group from the start. Doing repair and fix-up of what other
programs did wrong should not be necessary in the boot process.

-- 
sysklogd init script speedup (patch included)
https://bugs.launchpad.net/bugs/285530
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to