forked from sandia-minimega/minimega
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't rely on systemd to run minimega components
See moby/moby#42275.
- Loading branch information
1 parent
c80bd73
commit f07d596
Showing
7 changed files
with
88 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
exec /opt/minimega/bin/minimega -e "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
/usr/share/openvswitch/scripts/ovs-ctl start | ||
|
||
/opt/minimega/bin/miniweb -root=/opt/minimega/misc/web -addr=0.0.0.0:9001 & | ||
|
||
: "${MM_BASE:=/tmp/minimega}" | ||
: "${MM_FILEPATH:=/tmp/minimega/files}" | ||
: "${MM_BROADCAST:=255.255.255.255}" | ||
: "${MM_PORT:=9000}" | ||
: "${MM_DEGREE:=2}" | ||
: "${MM_CONTEXT:=minimega}" | ||
: "${MM_LOGLEVEL:=info}" | ||
: "${MM_LOGFILE:=/var/log/minimega.log}" | ||
|
||
[[ -f "/etc/default/minimega" ]] && source "/etc/default/minimega" | ||
|
||
/opt/minimega/bin/minimega \ | ||
-force \ | ||
-nostdin \ | ||
-base=${MM_BASE} \ | ||
-filepath=${MM_FILEPATH} \ | ||
-broadcast=${MM_BROADCAST} \ | ||
-port=${MM_PORT} \ | ||
-degree=${MM_DEGREE} \ | ||
-context=${MM_CONTEXT} \ | ||
-level=${MM_LOGLEVEL} \ | ||
-logfile=${MM_LOGFILE} |