Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
9e006fb8
Commit
9e006fb8
authored
Aug 28, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(vmonit): добавил обработку --uniset-port
parent
bcbc23f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
uniset2-vmonit
Utilities/Admin/uniset2-vmonit
+8
-3
No files found.
Utilities/Admin/uniset2-vmonit
View file @
9e006fb8
...
@@ -25,11 +25,12 @@ print_usage()
...
@@ -25,11 +25,12 @@ print_usage()
}
}
#parse command line options
#parse command line options
TEMP
=
`
getopt
-n
$PROG
-o
h,d,c:,s:
-l
help
,dump,confile:,watch_sec:
--
"
$@
"
`
||
exit
1
TEMP
=
`
getopt
-n
$PROG
-o
h,d,c:,s:
-l
help
,dump,confile:,watch_sec:
,uniset-port:
--
"
$@
"
`
||
exit
1
eval set
--
"
$TEMP
"
eval set
--
"
$TEMP
"
dump
=
dump
=
confile
=
confile
=
uport
=
while
:
;
do
while
:
;
do
case
"
$1
"
in
case
"
$1
"
in
-h
|
--help
)
print_usage 0
-h
|
--help
)
print_usage 0
...
@@ -45,6 +46,10 @@ while :; do
...
@@ -45,6 +46,10 @@ while :; do
shift
shift
confile
=
"
$1
"
confile
=
"
$1
"
;;
;;
--uniset-port
)
shift
uport
=
"--uniset-port
$1
"
;;
--
)
shift
;
break
--
)
shift
;
break
;;
;;
*
)
"unrecognized option:
$1
"
*
)
"unrecognized option:
$1
"
...
@@ -57,5 +62,5 @@ done
...
@@ -57,5 +62,5 @@ done
[
-n
"
$confile
"
]
&&
confile
=
"--confile
$confile
"
[
-n
"
$confile
"
]
&&
confile
=
"--confile
$confile
"
[
-z
"
$dump
"
]
&&
$WATCH
-n
$WATCH_SEC
uniset2-admin
$confile
--oinfo
$*
[
-z
"
$dump
"
]
&&
$WATCH
-n
$WATCH_SEC
uniset2-admin
$confile
--oinfo
$*
--
$uport
[
-n
"
$dump
"
]
&&
uniset2-admin
$confile
--oinfo
$*
[
-n
"
$dump
"
]
&&
uniset2-admin
$confile
--oinfo
$*
--
$uport
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment