Post Reply 
[Solved]Minimserver not starting automatically on Raspberry Pi
23-01-2014, 12:36
Post: #5
RE: Minimserver not starting automatically on Raspberry Pi
(23-01-2014 12:07)simoncn Wrote:  
(23-01-2014 10:46)guussie Wrote:  Hello Simon,

I have not automatic desktop integration. I am controlling the RPi through ssh and it will remain headless.

Guus

If you don't have desktop integration, the automatic startup installs a startup/shutdown script as the file

/etc/init.d/minimserver

and uses the update-rc.d command to create the necessary links to this script as the files

/etc/rc0.d/K01minimserver
/etc/rc1.d/K01minimserver
/etc/rc2.d/S01minimserver
/etc/rc3.d/S01minimserver
/etc/rc4.d/S01minimserver
/etc/rc5.d/S01minimserver
/etc/rc6.d/K01minimserver

Do you have all these files on your RPi with the correct permissions? If so, please paste the contents of /etc/init.d/minimserver here.

I have none of the rc@.d files.

The minim server file exists in init.d. Contents below:

#!/bin/sh
### BEGIN INIT INFO
# Provides: MinimServer
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop MinimServer
# Description:
### END INIT INFO

case "$1" in
start)
su "pi" -c "/home/pi/minimserver/minimserver-0.8.1/bin/startd"
;;
stop)
while :
do
PID="$(ps -ef | grep m"${ws}"\.jar | grep -v grep | awk '{print $2}$
if [ "${PID}" = "" ]; then
break
fi
kill ${PID}
done
;;
*)
echo "Usage: $0 start|stop" 1>&2
exit 3
;;
esac
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Minimserver not starting automatically on Raspberry Pi - guussie - 23-01-2014 12:36

Forum Jump:


User(s) browsing this thread: 1 Guest(s)