/etc/init.d/refdb is in refdb-server 1.0.2-3ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | #!/bin/sh
#
# refdb: Start the refdb bibliography tool application server
# (for use as init.d or rc.d script)
#
# markus@mhoenicka.de 2001-7-22
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
# ***********IMPORTANT*************
# This file is configured for SysV-style systems (most Linux distributions and
# a few commercial Unices). If you want to use the script on a BSD-style
# system (Slackware, {Free|Net|Open}BSD and a few commercial Unices), these
# two changes are recommended:
# 1. Set the value of BSDSTYLE to "YES" a few lines below
# 2. Rename the file to refdb.sh
# *********************************
# the name of the application
NAME=refdb
# set some default path
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
# the full path to the binary that is to be started as a daemon
DAEMON=/usr/bin/refdbd
# the full path to the script that actually starts and stops the application
REFDBCTL=/usr/bin/refdbctl
# set to 'YES' if the OS uses a BSD-style daemon startup system (this is
# true for BSD-UNIX and Unices derived thereof, as well as for the
# Slackware Linux distribution). This setting does not perform any black
# magic, but it makes the screen messages at startup match the OS style
BSDSTYLE=NO
# don't get interrupted
trap "" 1
# see whether all ingredients are available
test -f $DAEMON || exit 1
test -f $REFDBCTL || exit 1
# now run the specified command
case "$1" in
start)
if [ $BSDSTYLE = "YES" ]; then
$REFDBCTL start > /dev/null && echo -n ' refdb'
else
echo "Starting bibliography tool application server: $NAME."
$REFDBCTL start
fi;;
stop)
if [ $BSDSTYLE = "YES" ]; then
$REFDBCTL stop > /dev/null && echo -n ' refdb'
else
echo "Stopping bibliography tool application server: $NAME."
$REFDBCTL stop
fi;;
restart)
if [ $BSDSTYLE = "YES" ]; then
$REFDBCTL restart > /dev/null && echo -n ' refdb'
else
echo "Restarting bibliography tool application server: $NAME."
$REFDBCTL restart
fi;;
force-reload)
if [ $BSDSTYLE = "YES" ]; then
$REFDBCTL reload > /dev/null && echo -n ' refdb'
else
echo "Reloading bibliography tool application server: $NAME."
$REFDBCTL reload
fi;;
*)
echo "Usage: $(basename $0) {start|stop|restart|force-reload}" >&2
exit 1;;
esac
exit 0
|