Error: Macro TracNav(MainNav) failednot all arguments converted during string formatting
Startup scripts for HN.
#!/bin/sh
#
# hydranode startup script
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
. /etc/rc.status
export HYDRANODE=/opt/hydranode/bin/hydranode
export HNUSER=username
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/hydranode/lib
case "$1" in
start)
echo -n "Starting hydranode"
export HOME=/home/$HNUSER
startproc -s -p /var/tmp/hydranode.pid -q -u $HNUSER $HYDRANODE -b
rc_status -v
;;
stop)
echo -n "Shutting down hydranode"
killproc -p /var/tmp/hydranode.pid -TERM $HYDRANODE
rc_status -v
;;
status)
echo -n "Checking for hydranode"
checkproc -p /var/tmp/hydranode.pid $HYDRANODE
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status}"
exit 1
;;
esac
Gentoo startup script
#!/sbin/runscript
# Copyright 2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
HYDRANODE=/opt/hydranode/hydranode
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/hydranode/libs"
export HOME=/home/someuser
depend() {
need net
}
start() {
ebegin "Starting hydranode"
start-stop-daemon --start --quiet --exec $HYDRANODE -- -q -b
eend $?
}
stop() {
ebegin "Stopping hydranode"
start-stop-daemon --stop --quiet --name hydranode
eend $?
}
Ubuntu startup script
! /bin/sh
set -e
. /lib/lsb/init-functions
# /etc/init.d/hydranode: start and stop Hydranode
export HYDRANODE=/opt/hydranode/bin/hydranode
export HNUSER=username
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/hydranode/lib
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
case "$1" in
start)
log_begin_msg "Starting Hydranode..."
start-stop-daemon --start --quiet --pidfile /var/run/hydranode.pid --exec $HYDRANODE -b || log_end_msg 1
log_end_msg 0
;;
stop)
log_begin_msg "Stopping Hydranode..."
start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/hydranode.pid || log_end_msg 1
log_end_msg 0
;;
esac
exit 0