content_image/997269.jpg
<img src='content_image/997269.jpg'>

On the dsm-master node, create a definition file named dsm.def . The directory highlighted in bold is 2. the directory where the dsm  script is created. Save the file in the same directory as the dsm  script, which is /etc/init.d/ . 

PersistentResourceAttributes:: ....Name="dsm" ....StartCommand=" /etc/init.d /dsm start" ....StopCommand=" /etc/init.d /dsm stop" ....MonitorCommand=" /etc/init.d /dsm status" ....MonitorCommandPeriod=5 ....MonitorCommandTimeout=5 ....NodeNameList={"dsm-master","dsm-backup"} ....StartCommandTimeout=90 ....StopCommandTimeout=90 ....UserName="root" ....ResourceType=1 

Figure 11 shows the contents of the dsm.def  file. 

