| Current Path : /etc/init.d/ |
| Current File : //etc/init.d/dsm_om_connsvc |
#!/bin/sh
###############################################################################
#
# DELL INC. PROPRIETARY INFORMATION
# This software is supplied under the terms of a license agreement or
# nondisclosure agreement with Dell Computer Corporation and may not
# be copied or disclosed except in accordance with the terms of that
# agreement.
#
# Copyright (c) 2000-2018 Dell Inc. All Rights Reserved.
#
# Module Name:
# Server Administrator Control Script
#
# Abstract/Purpose:
# Shell script to control Server Administrator
# This script is only to allow backward compatabillity for consumers who
# who still refer to sys V init scripts.
#
# Environment:
# Linux
###############################################################################
# Standard status codes for commands other than "status"
STATUS_NO_ERROR=0
STATUS_GENERIC_ERROR=1
STATUS_INVALID_ARG=2
STATUS_NOT_IMPLEMENTED=3
###############################################################################
# Check command line parameter for action to perform
###############################################################################
case "$1" in
start)
systemctl start dsm_om_connsvc.service
EXIT_STATUS=$?
;;
stop)
systemctl stop dsm_om_connsvc.service
EXIT_STATUS=$?
;;
restart|reload)
systemctl restart dsm_om_connsvc.service
EXIT_STATUS=$?
;;
status)
systemctl status dsm_om_connsvc.service
EXIT_STATUS=$?
;;
*)
EXIT_STATUS=${STATUS_NOT_IMPLEMENTED}
esac
exit ${EXIT_STATUS}
###############################################################################
# End Script
###############################################################################