Setup Guide
26
DellProtectedWorkspaceManagementServer–InstallandConfigure–v2.2
killproc main
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
case "$1" in
start)
start
;;
stop)
stop
;;
status)
pgrep main > /dev/null 2>&1
status=$?
if [ $status -eq 0 ]; then
echo "running"
else
echo "not running"
fi
;;
restart)
stop
start
;;
reload)
stop
start
;;
*)
echo "Usage: <servicename> {start|stop|status|reload|restart]"
exit 1
;;
esac
exit $?
Savethefilebytyping“:wq!”Thiswillclosethefile.
Nowmodifythepermissionsonthefilebyrunningthefollowingcommand:
chmod a+x /etc/init.d/ims2
ThisnowenablestheDPWMSa pplicationtobestartedandstoppedusingthefo llowing options:
serviceims2start
serviceims2stop
serviceims2restart
serviceims2status
TosettheDPWMSapplicationtostartwiththeOSstarts(bothforupgradesandnewsysteminstalls),runthefollowing
command:
chkconfig ims2 on