Am Freitag, den 02.05.2008, 09:15 +0200 schrieb Petter Reinholdtsen:
> tags 465273 + patch
> thanks
> 
> I tested this issue in Lenny, and am sure the problem is non-writable
> /var/run/ at the very start of the boot.  The mv to move the pid file
> fail, and setting RAMRUN=yes solve it.
> 
> This patch should solve the issue, by moving the pid file to
> /lib/init/rw/, and should get the profiling to work.  Please test it.
Does not seem to conform to FHS, and could break Ubuntu. I have not
checked it, though.
> 
> diff -u readahead-list-1.20060421.1016/debian/stop-readahead.init 
> readahead-list-1.20060421.1016/debian/stop-readahead.init
> --- readahead-list-1.20060421.1016/debian/stop-readahead.init
> +++ readahead-list-1.20060421.1016/debian/stop-readahead.init
> @@ -22,17 +22,17 @@
>  
>  case "$1" in
>      start)
> -     if [ -f /var/run/readahead-watch-boot.pid ]; then
> +     if [ -f /lib/init/rw/readahead-watch-boot.pid ]; then
>           /sbin/start-stop-daemon --stop --quiet --oknodo \
> -             --pidfile /var/run/readahead-watch-boot.pid
> +             --pidfile /lib/init/rw/readahead-watch-boot.pid
>  
> -         rm -f /var/run/readahead-watch-boot.pid
> +         rm -f /lib/init/rw/readahead-watch-boot.pid
>       fi
>  
>       /sbin/start-stop-daemon --stop --quiet --oknodo \
> -         --pidfile /var/run/readahead-watch.pid
> +         --pidfile /lib/init/rw/readahead-watch.pid
>  
> -     rm -f /var/run/readahead-watch.pid
> +     rm -f /lib/init/rw/readahead-watch.pid
>       ;;
>      stop|restart|force-reload)
>       ;;
> diff -u readahead-list-1.20060421.1016/debian/readahead-desktop.init 
> readahead-list-1.20060421.1016/debian/readahead-desktop.init
> --- readahead-list-1.20060421.1016/debian/readahead-desktop.init
> +++ readahead-list-1.20060421.1016/debian/readahead-desktop.init
> @@ -54,7 +54,7 @@
>           fi
>       else
>           # Move the first stage's pid file so we can still kill it later
> -         mv /var/run/readahead-watch.pid /var/run/readahead-watch-boot.pid
> +         mv /lib/init/rw/readahead-watch.pid 
> /lib/init/rw/readahead-watch-boot.pid
>  
>           # Just watch the newly mounted directories
>           log_begin_msg "Preparing to profile boot sequence (second stage)..."
> diff -u 
> readahead-list-1.20060421.1016/debian/patches/50-readahead-watch.patch 
> readahead-list-1.20060421.1016/debian/patches/50-readahead-watch.patch
> --- readahead-list-1.20060421.1016/debian/patches/50-readahead-watch.patch
> +++ readahead-list-1.20060421.1016/debian/patches/50-readahead-watch.patch
> @@ -359,7 +359,7 @@
>  +
>  +
>  +/* Where to write our pid file */
> -+#define PID_FILE "/var/run/readahead-watch.pid"
> ++#define PID_FILE "/lib/init/rw/readahead-watch.pid"
>  +
>  +/* Size of buffer to read inotify events from. */
>  +#define BUF_LEN 16384
> 
> 
> Happy hacking,
-- 
Julian Andres Klode, Fellow of the Free Software Foundation Europe
                     Debian Maintainer | Developer | Ubuntu Member

try Debian: http://www.debian.org/ | my site: http://jak-linux.org/
        jabber: [EMAIL PROTECTED] | IRC: juliank (FreeNode, OFTC)
            languages:     German  | English

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to