View | Details | Raw Unified | Return to bug 10617
Collapse All | Expand All

(-)a/debian/koha-common.default (+3 lines)
Line 0 Link Here
1
## General koha-common default options
2
3
PERL5LIB="/usr/share/koha/lib"
(-)a/debian/koha-common.init (-20 / +14 lines)
Lines 18-34 Link Here
18
# PATH should only include /usr/* if it runs after the mountnfs.sh script
18
# PATH should only include /usr/* if it runs after the mountnfs.sh script
19
PATH=/sbin:/usr/sbin:/bin:/usr/bin
19
PATH=/sbin:/usr/sbin:/bin:/usr/bin
20
DESC="Koha ILS"
20
DESC="Koha ILS"
21
NAME=daemonexecutablename
21
NAME="koha-common"
22
DAEMON=/usr/sbin/$NAME
23
DAEMON_ARGS="--options args"
24
PIDFILE=/var/run/$NAME.pid
25
SCRIPTNAME=/etc/init.d/$NAME
22
SCRIPTNAME=/etc/init.d/$NAME
26
23
27
# Exit if the package is not installed
24
# Exit if the package is not installed
28
[ -x /usr/sbin/koha-start-zebra ] || exit 0
25
[ -x /usr/sbin/koha-start-zebra ] || exit 0
29
26
30
# Read configuration variable file if it is present
27
# Read configuration variable file if it is present
31
# [ -r /etc/default/$NAME ] && . /etc/default/$NAME
28
if [ -r /etc/default/$NAME ]; then
29
    # Debian / Ubuntu
30
    . /etc/default/$NAME
31
elif [ -r /etc/sysconfig/$NAME ]; then
32
    # RedHat / SuSE
33
    . /etc/sysconfig/$NAME
34
fi
32
35
33
# Load the VERBOSE setting and other rcS variables
36
# Load the VERBOSE setting and other rcS variables
34
. /lib/init/vars.sh
37
. /lib/init/vars.sh
Lines 84-101 case "$1" in Link Here
84
		*) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
87
		*) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
85
	esac
88
	esac
86
	;;
89
	;;
87
#  status)
88
#       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
89
#       ;;
90
  #reload|force-reload)
91
	#
92
	# If do_reload() is not implemented then leave this commented out
93
	# and leave 'force-reload' as an alias for 'restart'.
94
	#
95
	#log_daemon_msg "Reloading $DESC" "$NAME"
96
	#do_reload
97
	#log_end_msg $?
98
	#;;
99
  restart|force-reload)
90
  restart|force-reload)
100
	#
91
	#
101
	# If the "reload" option is implemented then remove the
92
	# If the "reload" option is implemented then remove the
Lines 117-125 case "$1" in Link Here
117
		;;
108
		;;
118
	esac
109
	esac
119
	;;
110
	;;
111
# TODO: Implement this. It should check every daemon is running
112
#  status)
113
#        status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
114
#        ;;
120
  *)
115
  *)
121
	echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
116
    #echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
122
	#echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
117
    echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
123
	exit 3
118
	exit 3
124
	;;
119
	;;
125
esac
120
esac
126
- 

Return to bug 10617