Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a helpful modification for /etc/init.d/AMBEserver #163

Open
csylvain opened this issue Oct 11, 2018 · 0 comments
Open

a helpful modification for /etc/init.d/AMBEserver #163

csylvain opened this issue Oct 11, 2018 · 0 comments

Comments

@csylvain
Copy link

csylvain commented Oct 11, 2018

"as is" the parameters are plug-n-play for the DVDongle (blue box), right?
it needs to be a little different for the ThumbDV dongle (formerly DV3000u).

the documentation available is for both old versions of hardware and AMBEserver and new versions - though it seems the older docs are more abundant. it makes for confusion.

so, with this small change, at least there will be something to point a newcomer in the right direction:
`#! /bin/sh

BEGIN INIT INFO

Provides: AMBEserver

Required-Start: $local_fs $remote_fs

Required-Stop:

X-Start-Before:

Default-Start: 2 3 4 5

Default-Stop:

Short-Description: Provide AMBE Encode/Decode

Description: Provide daemon for AMBE Encoding and Decoding

END INIT INFO

N=/etc/init.d/AMBEserver

set -e

case "$1" in
start)
# ThumbDV with AMBEserver as system-wide service
# activate on command line using: sudo service AMBEserver start
/usr/local/sbin/AMBEserver -d -i /dev/ttyUSB0 -s 460800
# all others - comment out the previous and uncomment the following
# /usr/bin/AMBEserver -d -i /dev/ttyUSB0
echo "Starting AMBEserver" >&2
exit 0
;;
stop)
killall AMBEserver
exit 0
;;
reload|restart|force-reload|status)
;;
*)
echo "Usage: $N {start|stop}" >&2
exit 1
;;
esac

exit 0`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant