#!/bin/bash # initlog # Source functions library source /etc/rc.d/init.d/functions case "$1" in start) # Initialization of the log file for the INIT process if [ ! -d ${INIT_LOG_PATH} ]; then boot_failure "Missing ${INIT_LOG_PATH} directory." fi mount -t tmpfs -o mode=0755 tmpfs ${INIT_LOG_PATH} && touch ${INIT_LOG_FILE} ;; stop) umount ${INIT_LOG_PATH} ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?