forked from Mirrors/privacore-open-source-search-engine
make install updates
This commit is contained in:
8
Makefile
8
Makefile
@ -476,11 +476,11 @@ install:
|
||||
rm -f /usr/bin/gb
|
||||
ln -s /var/gigablast/shard0/gb /usr/bin/gb
|
||||
# if machine restarts
|
||||
# the new way that does not use run-levels anymore
|
||||
rm -f /etc/init.d/gb
|
||||
ln -s /var/gigablast/shard0/gb /etc/init.d/gb
|
||||
# it will start up gb
|
||||
rm -f /etc/rc3.d/S99gb
|
||||
ln -s /etc/init.d/gb /etc/rc3.d/S99gb
|
||||
ln -s /lib/init/upstart-job /etc/init.d/gb
|
||||
# initctl upstart-job conf file (gb stop|start|reload)
|
||||
cp init.gb.conf /etc/init/gb.conf
|
||||
|
||||
.cpp.o:
|
||||
$(CC) $(DEFS) $(CPPFLAGS) -c $*.cpp
|
||||
|
21
init.gb.conf
Normal file
21
init.gb.conf
Normal file
@ -0,0 +1,21 @@
|
||||
# Gigablast Search Engine Service
|
||||
|
||||
description "Gigablast Search Engine Service"
|
||||
author "Matt Wells <gigablast@mail.com>"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on starting rc RUNLEVEL=[016]
|
||||
|
||||
respawn
|
||||
respawn limit 2 5
|
||||
|
||||
env HOME=/var/gigablast/shard0/
|
||||
umask 007
|
||||
|
||||
# The default of 5 seconds is too low for mysql which needs to flush buffers
|
||||
#kill timeout 300
|
||||
|
||||
# -d: start as deamon
|
||||
# 0: start as host #0
|
||||
# TODO: use gb localstart
|
||||
exec /var/gigablast/shard0/gb 0 -d
|
Reference in New Issue
Block a user