Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/lib/panels/remote/conf/emps/emps

#! /bin/bash
# (c) Softaculous Ltd.
# Service for EMPS
#
# chkconfig: 2345 10 90
# description: Service for EMPS
#

### BEGIN INIT INFO
# Provides:          softaculous-remote
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop:	0 1 6
# Short-Description: Service for EMPS (c) Softaculous Ltd.
### END INIT INFO

rc=0

# See how we were called.
case "$1" in
  start)
	/usr/local/emps/bin/fpmctl start
	/usr/local/emps/bin/nginxctl start
	/usr/local/emps/bin/mysqlctl start
	;;
  stop)
	/usr/local/emps/bin/fpmctl stop
	/usr/local/emps/bin/nginxctl stop
	/usr/local/emps/bin/mysqlctl stop
	;;
  restart|reload)
    cd "$CWD"
	$0 stop
	$0 start
	;;
  status)
	/usr/local/emps/bin/fpmctl status
	/usr/local/emps/bin/nginxctl status
	/usr/local/emps/bin/mysqlctl status
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 1	
esac

exit $rc
Back to Directory