blob: d6e3e8bd8130d0f72af80316df844ae399390ed5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/sh
#
# irbox: Starts the in.ivyd super-daemon for the ivyd Ivy relay
#
# Version: @(#) /etc/rc.d/init.d/irbox.init 1.1
#
# chkconfig: - 97 03
# description: This is a daemon that works as a port server for ivyd, \
# a relay to Ivy for short-lived applications
# processname: in.ivyd
# config:
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Ivy daemon port server... "
daemon in.ivyd -boot
echo
touch /var/lock/subsys/ivyd
;;
stop)
echo -n "Shutting down Ivy daemon port server "
killproc in.ivyd
rm -f /var/lock/subsys/ivyd
echo
;;
status)
status in.ivyd
;;
restart)
$0 stop
$0 start
;;
*)
echo "*** Usage: ivyd {start|stop|status|restart}"
exit 1
esac
exit 0
|