Post Reply 
Minimserver Autostart Ubuntu
27-11-2013, 08:13
Post: #10
RE: Minimserver Autostart Ubuntu
Another way to do this is described in this article. This is the approach used by Raspbian for automatically starting most other service processes.

Here's the init.d script that I'm using on my Pi:

Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides:          minimserver
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start MinimServer
# Description:
### END INIT INFO

MINIM_HOME=/sd1/minim/minimserver-0.72
USER=pi

case "$1" in
  start)
    su ${USER} -c "${MINIM_HOME}/autostart.sh"
    ;;
  *)
    echo "Usage: $0 start" >&2
    exit 3
    ;;
esac
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Minimserver Autostart Ubuntu - jvilly - 12-02-2013, 11:30
RE: Minimserver Autostart Ubuntu - simoncn - 27-11-2013 08:13

Forum Jump:


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