Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2003 08:48:26 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Mike Makonnen <mtm@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/rc.d cleartmp
Message-ID:  <20031201084533.H13221@root.org>
In-Reply-To: <20031201163631.B160A16A557@hub.freebsd.org>
References:  <20031201163631.B160A16A557@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Dec 2003, Mike Makonnen wrote:
>   Modified files:
>     etc/rc.d             cleartmp
>   Log:
>   When clearing /tmp, X11 lock and temporary files are special.
>   Remove them unconditionaly.
>
>   PR:             bin/59065
>   Approved by:    re (scottl)
>
>   Revision  Changes    Path
>   1.5       +13 -13    src/etc/rc.d/cleartmp
>
>  load_rc_config $name
>  run_rc_command "$1"
> +
> +case ${OSTYPE} in
> +FreeBSD)
> +	# Remove X lock files, since they will prevent you from
> +	# restarting X
> +	#
> +	rm -f /tmp/.X*-lock
> +	rm -fr /tmp/.X11-unix
> +	mkdir -m 1777 /tmp/.X11-unix
> +	;;
> +NetBSD)
> +	;;
> +esac

How about .X[0-9]-lock instead of *?

-Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031201084533.H13221>