Linux Start Script (for example Ubuntu)
-----------------------------

# cat /etc/init/mux12000.conf
description "Mux for tape.0092 on port 12000"
start on runlevel [2345]
exec / Hiback / hidst -c /Hiback/tape/tape0092.conf
#

with the adhoc start

# initctl start mux12000

and start on reboot of the system.

Init (for example, old Suse and Redhats)
-----------------------------------------

# cat /etc/init.d/mux
#! / Bin / bash
#### BEGIN chkconfig options
# chkconfig: 5 20 80
# description: NovaStor Hiback multiplexer processes
# processname: ixt
#### END chkconfig options
#### BEGIN INIT INFO
# Provides: mux
# Required-Start: $ all
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default start: 5
# Default stop: 0 1 2 6
# Short Description: NovaStor Hiback multiplexer processes
# Description: Starts and stops NovaStor Hiback multiplexer
#### END INIT INFO
conffiles = "/ Hiback / tape / ???? [0-9] [0-9] [0-9] [0-9] .conf"
case "$ 1" in
begin)
for conf in $ conffiles; do
/ Hiback / hidst -c $ conf
sleep 3
done
;;
Stop)
for conf in $ conffiles; do
port = $ (grep "^ port:" $ conf | awk -F: '{print $ 2}' | sed -e "s + .stream ++")
/ Hiback / tape / tpm -n 127.0.0.1 -p $ portstop
done
;;
*)
echo "Usage: $ 0 {start | stop}"
exit 1
;;
esac
exit 0
#

# ls -l /etc/init.d/rc5.d/*mux
../mux

"lrwxrwxrwx 1 root root 6 May 31 2012 /etc/init.d/rc5.d/K05mux -> ../mux
../mux

"lrwxrwxrwx 1 root root 6 May 31 2012 /etc/init.d/rc5.d/S17mux -> ../mux
#