Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix startup/shutdown order of nis and mxstartup
After 4ee8fed systems hang on shtudown until systemd times out.

Do not wait for NIS on shutdown.
Tell systemd to order nis and mxstartup in startup and shutdown
  • Loading branch information
donald committed Jan 5, 2016
1 parent 4ee8fed commit 147b4ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mxstartup-classic.service
@@ -1,6 +1,6 @@
[Unit]
Description=Mariux mxstartup classic
After=mxstartup-mxvip.service mxmount.service
After=mxstartup-mxvip.service mxmount.service nis.service
Requires=mxstartup-mxvip.service mxmount.service

[Service]
Expand Down
8 changes: 4 additions & 4 deletions mxstartupctl
Expand Up @@ -2,13 +2,13 @@

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)
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
;;
Expand Down

0 comments on commit 147b4ca

Please sign in to comment.