#!/bin/sh # /etc/init.d/prepare - take care of house keeping tasks after local # filesystems are mounted. PATH=/sbin:/bin case $1 in start) echo "Preparing for interactive use." rm -f /var/run/*.pid # Remove stale pid files >/var/run/utmp # Create empty utmp >>/var/log/wtmp # Ensure wtmp exists ;; stop) echo "Preparing for system shutdown." killall5 9 # kill with extreme prejudice ;; *) echo "usage: $0 start|stop" ;; esac