fix for debian int script

http://forum.yacy-websuche.de/viewtopic.php?t=2418

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6430 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 15 years ago
parent 63e489c5f7
commit 6414ac9ecf

@ -176,7 +176,7 @@ ifdef(`Fedora', `
ifdef(`ArchLinux', ` ifdef(`ArchLinux', `
stat_busy "Starting YaCy Daemon" stat_busy "Starting YaCy Daemon"
')dnl ')dnl
ARGS="$JAVA_ARGS -classpath $CLASSPATH yacy" ARGS="$JAVA_ARGS -classpath $CLASSPATH net.yacy.yacy"
define(`START_YACY_WITH_START_STOP_DAEMON',` define(`START_YACY_WITH_START_STOP_DAEMON',`
/sbin/start-stop-daemon --start --background --make-pidfile --chuid $USER\ /sbin/start-stop-daemon --start --background --make-pidfile --chuid $USER\
--pidfile $PID_FILE --chdir $YACY_HOME --startas $JAVA\ --pidfile $PID_FILE --chdir $YACY_HOME --startas $JAVA\
@ -248,7 +248,7 @@ ifdef(`ArchLinux', `
stat_busy "Stopping YaCy Daemon" stat_busy "Stopping YaCy Daemon"
')dnl ')dnl
cd $YACY_HOME cd $YACY_HOME
cmdline="$JAVA $JAVA_ARGS -cp $CLASSPATH yacy -shutdown" cmdline="$JAVA $JAVA_ARGS -cp $CLASSPATH net.yacy.yacy -shutdown"
if [ "$(whoami)" != "$USER" ]; then if [ "$(whoami)" != "$USER" ]; then
sudo -u yacy $cmdline &>/dev/null & sudo -u yacy $cmdline &>/dev/null &
else else

@ -69,7 +69,7 @@ case "$1" in
start-stop-daemon --start --background --make-pidfile --chuid $USER\ start-stop-daemon --start --background --make-pidfile --chuid $USER\
--pidfile $PID_FILE --chdir $DAEMON_DIR --startas $JAVA\ --pidfile $PID_FILE --chdir $DAEMON_DIR --startas $JAVA\
--nicelevel $NICE_VAL\ --nicelevel $NICE_VAL\
-- $JAVA_ARGS -classpath $CLASSPATH yacy $DAEMON_DIR -- $JAVA_ARGS -classpath $CLASSPATH net.yacy.yacy $DAEMON_DIR
echo "$NAME." echo "$NAME."
;; ;;

Loading…
Cancel
Save