mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 01:31:58 +01:00
added an rc script for searchd
This commit is contained in:
parent
019446eebe
commit
1e7039c433
23
README
23
README
@ -13,7 +13,7 @@ Features:
|
|||||||
- digital fingerprinting and verification
|
- digital fingerprinting and verification
|
||||||
|
|
||||||
- full text search
|
- full text search
|
||||||
- simple and advanced search
|
- simple, advanced and expert search
|
||||||
- save search criteria
|
- save search criteria
|
||||||
- tagging emails
|
- tagging emails
|
||||||
- view, export, restore emails
|
- view, export, restore emails
|
||||||
@ -34,24 +34,3 @@ Features:
|
|||||||
|
|
||||||
- recognised formats: PST, EML, Maildir, mailbox
|
- recognised formats: PST, EML, Maildir, mailbox
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
locales under debian: dpkg-reconfigure locales
|
|
||||||
|
|
||||||
|
|
||||||
init:
|
|
||||||
indexer --all
|
|
||||||
searchd inditasa
|
|
||||||
|
|
||||||
|
|
||||||
indexer delta1 --rotate
|
|
||||||
indexer --merge main1 delta1 --rotate --merge-dst-range deleted 0 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enron dataset: http://www.cs.cmu.edu/~enron/
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,12 +24,13 @@ INSTALL = @INSTALL@
|
|||||||
|
|
||||||
all:
|
all:
|
||||||
sed -e "s%SBINDIR%$(sbindir)%" -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/rc.piler.in > $(srcdir)/rc.piler
|
sed -e "s%SBINDIR%$(sbindir)%" -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/rc.piler.in > $(srcdir)/rc.piler
|
||||||
|
sed -e "s%BINDIR%$(bindir)%" -e "s%SYSCONFDIR%$(sysconfdir)%" $(srcdir)/rc.searchd.in > $(srcdir)/rc.searchd
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f rc.piler
|
rm -f rc.piler rc.searchd
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile
|
rm -f Makefile
|
||||||
|
50
init.d/rc.searchd.in
Normal file
50
init.d/rc.searchd.in
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
##
|
||||||
|
##
|
||||||
|
|
||||||
|
NAME=searchd
|
||||||
|
PID_FILE=/var/piler/sphinx/searchd.pid
|
||||||
|
PID_NUMBER=`test -f ${PID_FILE} && cat ${PID_FILE}`
|
||||||
|
|
||||||
|
start() {
|
||||||
|
echo "starting searchd . . ."
|
||||||
|
su piler -c 'BINDIR/searchd'
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
echo "stopping searchd"
|
||||||
|
killall ${NAME}
|
||||||
|
}
|
||||||
|
|
||||||
|
check_status(){
|
||||||
|
test -f /proc/${PID_NUMBER}/status
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
start;
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
stop;
|
||||||
|
;;
|
||||||
|
|
||||||
|
status)
|
||||||
|
if check_status;
|
||||||
|
then
|
||||||
|
echo "${NAME} is running."
|
||||||
|
else
|
||||||
|
echo "${NAME} is not running."
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
stop;
|
||||||
|
sleep 1;
|
||||||
|
start;
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 start|stop|restart|status"
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in New Issue
Block a user