cvs commit: src/etc/rc.d cleartmp
Nate Lawson
nate at root.org
Mon Dec 1 08:49:28 PST 2003
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
More information about the cvs-src
mailing list