components/openca-ocspd/Solaris/svc-ocspd
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Sun, 25 Sep 2016 17:46:40 -0700
changeset 7213 8908c34de05d
parent 6310 456a99f2d979
permissions -rw-r--r--
23245347 Move nautilus-sendto to Userland and update to 3.8.2 PSARC/2016/375 GNOME apps and icons

#!/usr/sbin/sh
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#

. /lib/svc/share/smf_include.sh

CONF_FILE=/etc/ocspd/ocspd.xml;
PIDFILE=$SMF_SYSVOL_FS/ocspd.pid;

case "$1" in
'start')
	/usr/lib/ocspd -c "$CONF_FILE" -d
	;;

'restart')
	if [ -f "$PIDFILE" ]; then
		/usr/bin/kill -HUP `/usr/bin/cat $PIDFILE`
        fi
	;;

*)
	echo "Usage: $0 { start | restart }"
	exit 1
	;;
esac

exit $?