How can I restart the server ?
How can I restart the server ?
I look for restarting the server after modifying the configuration.
Waht is the command which do that ?
Waht is the command which do that ?
Re: How can I restart the server ?
Maybe this can help you.
Good luck!
Good luck!
Code: Select all
#!/bin/sh
# Script to control Steamcast with start and stop
#
# Script, version 1.0.0, tested on Fedora 10, 2009-08-18
# Written by alias Board - Woozy Radio http://www.woozyradio.com
# (visit forums.radiotoolbox.com for this script)
#
# HowTo: create a file steamcast.sh in /etc/init.d
# Change file rights: chmod 755 steamcast.sh
# Adjust the path to the steamcast executable
STEAMCAST=/steamcast
case "$1" in
start)
$STEAMCAST/steamcast > /dev/null &
;;
stop)
echo -n "Shutting down steamcast: "
kill $(pgrep steamcast)
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f $STEAMCAST/steamcast.pid
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0