#!/bin/bash
#
# chkconfig: 2345 85 15
# description: Plesk Interface and Utilities
# processname: sw-cp-server
# config: /etc/sw-cp-server/config
# config: /etc/sw-cp-server/conf.d/plesk.conf
# pidfile: /var/lib/sw-cp-server.pid
#
# Startup script for the Plesk
#
# Following comments are required for SuSE Linux
#
### BEGIN INIT INFO
# Provides:       plesk psa
# Required-Start: $remote_fs $time mysql
# Required-Stop:
# X-UnitedLinux-Should-Start:
# X-UnitedLinux-Should-Stop:
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Description:    Start the Plesk Server Administrator
### END INIT INFO
#
#


# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Source subsystem configuration.
[ -f /etc/sysconfig/psa ] && . /etc/sysconfig/psa

prog="$0"
action="$1"

case $action in
	start|stop|startall|stopall|restart|status)
		/usr/lib64/plesk-9.0/psa_service $1
	;;
	*)
		echo "Usage: $0 {start|stop|startall|stopall|restart|status}"
		exit 1
	;;
esac

exit $?
