#!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { } stop() { if [ -d /run -a ! -L /var/lock -a ! -L /var/run ]; then # before the next two commands are run: # make sure nothing is open in /var/{run,lock} # make sure all processes that might open files in these locations # are stopped. cp -a /var/lock /run cp -a /var/run/* /run rm -rf /var/lock /var/run ln -s /var/lock /run/lock ln -s /var/run /run fi return 0 }