Skip to content

Commit

Permalink
mxstartupctl: Wait for NIS by trying to resolve user molgen
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Oct 13, 2015
1 parent d919716 commit 4ee8fed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mxstartupctl
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

remoteuser=molgen

while ! id ${remoteuser} >/dev/null 2>&1 ; do
echo >&2 "WARNING: Waiting for NIS (failed to resolve remote user ${remoteuser})"
sleep 1
done

case "${1}" in
start)
mxvipctl start $2
Expand Down

0 comments on commit 4ee8fed

Please sign in to comment.