Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 30 lines (25 sloc) 608 Bytes
#!/bin/bash
remoteuser=molgen
case "${1}" in
start)
while ! id ${remoteuser} >/dev/null 2>&1 ; do
echo >&2 "WARNING: Waiting for NIS (failed to resolve remote user ${remoteuser})"
sleep 1
done
mxvipctl start $2
mxservicectl start $2
;;
stop)
mxservicectl stop $2
mxvipctl stop $2
;;
restart)
mxservicectl stop $2
mxvipctl stop $2
mxvipctl start $2
mxservicectl start $2
;;
*)
echo >&2 "$0 start|stop|restart <service>"
;;
esac