Oracle ZFS Storage Appliance Administration Manual page 618

Hide thumbs Also See for ZFS Storage Appliance:
Table of Contents

Advertisement

Creating an init.d Service
#
# chkconfig: 345 61 19
# description: mounts ZFS Storage Appliance shares
#
start()
{
mount /zfssa/dbname/backup1
mount /zfssa/dbname/backup2
mount /zfssa/dbname/backup3
mount /zfssa/dbname/backup4
echo "Starting $prog: "
}
stop()
{
umount /zfssa/dbname/backup1
umount /zfssa/dbname/backup2
umount /zfssa/dbname/backup3
umount /zfssa/dbname/backup4
echo "Stopping $prog: "
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
mount
;;
*)
exit 1
esac
2.
(Optional) Enable the init.d service for start-on-boot by entering:
# chkconfig zfssa_dbname on
3.
(Optional) Start and stop the service manually using the service commands:
618
Oracle ZFS Storage Appliance Administration Guide, Release OS8.6.x • September 2016
echo "Usage: $0 {start|stop|restart|status}"

Advertisement

Table of Contents
loading

Table of Contents