open-source-search-engine/S99gb
Matt Wells f0b7d6ad1a added S99gb for loading at boot.
do a 'sudo make install' to install
to /var/gigablast/ dir
2014-06-23 07:32:38 -06:00

26 lines
542 B
Bash
Executable File

#! /bin/sh
### BEGIN INIT INFO
# Provides: gb
# Required-Start: $remote_fs $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run the Gigablast Search Engine
### END INIT INFO
case "$1" in
start)
start-stop-daemon --start --background --exec /usr/bin/gb -- -d
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac