Mercurial > ~darius > hgwebdir.cgi > ZigBee
view zbmux.sh @ 26:ca8993488ac5 default tip
Use Python 2.7.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 16 Apr 2013 10:23:29 +0930 |
parents | b0057548801f |
children |
line wrap: on
line source
#!/bin/sh # # PROVIDE: zbmux # REQUIRE: LOGIN # KEYWORD: shutdown # Add the following line to /etc/rc.conf to enable `zbmux': # #zbmux_enable="YES" # . "/etc/rc.subr" name="zbmux" rcvar=`set_rcvar` base="/home/darius/projects/ZigBee" command="/usr/local/bin/twistd" command_args="-l $base/$name.log --pidfile=$base/$name.pid -y $base/$name.tac" pidfile="$base/$name.pid" required_files="$base/$name.tac" command_interpreter="/usr/local/bin/python2.7" zbmux_chdir="$base" # read configuration and set defaults load_rc_config "$name" : ${zbmux_enable="NO"} : ${zbmux_flags=""} : ${zbmux_user="darius"} run_rc_command "$1"