5

Piped command changes PID

view full story
linux-howto

http://unix.stackexchange.com – I created a (Debian) init Script for an executable Jar file: [...] NAME=NameOfMyShellScript DAEMON="/usr/share/myApp/bin/$NAME" USER="myUser" PIDFILE="/usr/share/myApp/run/$NAME.pid" EXTRA_ARGS=" -c $USER --background --make-pidfile" [...] start-stop-daemon --start --quiet $EXTRA_ARGS --pidfile $PIDFILE --startas $DAEMON -- [...] My init script basically just invokes start-stop-daemon which executes a shell script: #!/bin/sh XNAME="hellofellow_1" SCALATRA_ENV="development" TMP_DIR="tmp/$XNAME/" JAVA_OPTIONS="-Xmx2024M -XX:MaxPermSize=512M" LOGFILE="logs/$XNAME.log" PORT="8080" JAVA_OPTION (HowTos)