#!/usr/sbin/sh # # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # # Start method script for the cron service. # . /lib/svc/share/smf_include.sh if [ -p $SMF_SYSVOL_FS/cronfifo ]; then if /usr/bin/pgrep -x -u 0 -z `smf_zonename` cron >/dev/null 2>&1; then echo "$0: cron is already running" exit $SMF_EXIT_ERR_NOSMF fi fi if [ -x /usr/sbin/cron ]; then /usr/bin/rm -f $SMF_SYSVOL_FS/cronfifo /usr/sbin/cron & else exit 1 fi exit $SMF_EXIT_OK