]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/icecream
Enabled force setting system time on boot.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / icecream
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/icecream
4 #
5 # Description : This is a script that starts the icecream daemon.
6 #
7 # Authors : Michael Tremer (mitch@ipfire.org)
8 #
9 # Version : 01.00
10 #
11 # Notes :
12 #
13 ########################################################################
14
15 . /etc/sysconfig/rc
16 . ${rc_functions}
17
18 SCHEDULER=minerva.ipfire.org
19 JOBS=8
20 PORT=10244
21
22 case "${1}" in
23 start)
24 boot_mesg "Starting Icecream Daemon..."
25 /opt/icecream/sbin/iceccd -d -s ${SCHEDULER} -m ${JOBS} -p ${PORT}
26 evaluate_retval
27 if ! grep -q "${PORT}" /var/ipfire/xtaccess/config ; then
28 echo "tcp,0.0.0.0/0,${PORT},on,0.0.0.0,Icecream" >> /var/ipfire/xtaccess/config
29 /usr/local/bin/setxtaccess
30 fi
31 ;;
32
33 stop)
34 boot_mesg "Stopping Icecream Daemon..."
35 killproc /opt/icecream/sbin/iceccd
36 ;;
37
38 restart)
39 ${0} stop
40 sleep 1
41 ${0} start
42 ;;
43
44 status)
45 statusproc /opt/icecream/sbin/iceccd
46 ;;
47
48 *)
49 echo "Usage: ${0} {start|stop|reload|restart|status}"
50 exit 1
51 ;;
52 esac
53
54 # End $rc_base/init.d/icecream