Permalink
Browse files

デーモン用シェル修正

  • Loading branch information...
1 parent 54307c1 commit 119a061c5326859711fd95de6ad8377ad6e6ac6a @gendosu committed Jun 14, 2012
Showing with 18 additions and 2 deletions.
  1. +18 −2 shell/minimage
View
@@ -1,15 +1,31 @@
#/bin/sh
+touch /tmp/gen.txt
-BACKUP_DIR=`pwd`
+### BEGIN INIT INFO
+# Provides: minimage
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Should-Start: festival
+# Should-Stop: festival
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: minimage
+# Description: minimage
+### END INIT INFO
+
+
+JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
cd /home/super/git/MiniMage/dist/minimage-1.0-SNAPSHOT
+BACKUP_DIR=`pwd`
CUR_DIR=`pwd`
CLASSPATH=:$CUR_DIR:/usr/share/java/commons-daemon.jar:$CUR_DIR/lib/*
-PID_FILE=./pidfile
+PID_FILE=$CUR_DIR/pid
start()
{
/usr/bin/jsvc \
-home $JAVA_HOME \
+ -user super \
-cp $CLASSPATH \
-pidfile $PID_FILE \
-debug -verbose \

0 comments on commit 119a061

Please sign in to comment.