#! /bin/sh ### BEGIN INIT INFO # Provides: origo-api # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start and stop the origo API node # Description: Controls the origo API node which provides # an xmlrpc interface to origo services. ### END INIT INFO # Author: Patrick Ruckstuhl # # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script # $NODE_ID will be filled by the counter between NODE_START and NODE_END PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Origo API node" NAME=origo-api DAEMON=/usr/local/sbin/origo/$NAME DAEMON_ARGS="-d -n api\$NODE_ID -p \$((1079+\$NODE_ID))" SCRIPTNAME=/etc/init.d/$NAME WORK_DIR="/var/log/origo/origo-api\$NODE_ID" PIDFILE="/var/run/origo/api\$NODE_ID.pid"