A new user interface for you! Read more...

File redhat.restart.sh of Package emby-server

#!/bin/sh
# Author: FC7 <casasfernando@outlook.com>

DISTRIBUTOR=`lsb_release -i | cut -f 2`
RELEASE=`lsb_release -r | cut -f 2 | cut -d . -f 1`

if [ "$DISTRIBUTOR" == "Fedora" ]; then

	/usr/bin/sudo systemctl restart emby-server

elif [ "$DISTRIBUTOR" == "CentOS" ]; then

	if [ "$RELEASE" == "6" ]; then

		/usr/bin/sudo service emby-server restart

	elif [ "$RELEASE" == "7" ]; then

		/usr/bin/sudo systemctl restart emby-server

	fi
		
fi