mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-04 19:30:01 +03:00
start-eddn-service: That's bounceR & enforce it
* Bouncer, not bounce. * Check the provided eddn service is a valid one.
This commit is contained in:
parent
d8ac2bc6b2
commit
6e07d1fd64
1
setup.py
1
setup.py
@ -69,6 +69,7 @@ setup(
|
||||
'eddn-gateway = eddn.Gateway:main',
|
||||
'eddn-relay = eddn.Relay:main',
|
||||
'eddn-monitor = eddn.Monitor:main',
|
||||
'eddn-bouncer = eddn.Bouncer:main',
|
||||
],
|
||||
}
|
||||
)
|
||||
|
@ -19,7 +19,7 @@ EXIT_SERVICE_ALREADY_RUNNING=4
|
||||
# Print usage information
|
||||
##################################################
|
||||
usage() {
|
||||
echo "Usage: $(basename $0) ( live | beta | dev ) ( gateway | monitor | relay | bounce ) [ --from-source [ --background ] ]" >&2
|
||||
echo "Usage: $(basename $0) ( live | beta | dev ) ( gateway | monitor | relay | bouncer ) [ --from-source [ --background ] ]" >&2
|
||||
}
|
||||
##################################################
|
||||
|
||||
@ -77,6 +77,15 @@ then
|
||||
exit ${EXIT_CL_ARGS}
|
||||
fi
|
||||
SERVICE="${2}"
|
||||
case "${SERVICE}" in
|
||||
gateway|monitor|relay|bouncer)
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
echo "Invalid EDDN service: ${SERVICE}"
|
||||
exit ${EXIT_CL_ARGS}
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -z "${3}" ];
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user