smf-tools (2.10-5) unstable; urgency=low
* svcstatus: close stderr on the first svcs invocation
This commit is contained in:
parent
16b964b030
commit
4b5703fbb6
|
@ -1,3 +1,9 @@
|
|||
smf-tools (2.10-5) unstable; urgency=low
|
||||
|
||||
* svcstatus: close stderr on the first svcs invocation
|
||||
|
||||
-- Igor Pashev <pashev.igor@gmail.com> Sun, 12 May 2013 00:17:21 +0400
|
||||
|
||||
smf-tools (2.10-4) unstable; urgency=low
|
||||
|
||||
* Added tools svcstatus and smf_present for using in post-install scripts
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if smf_present; then
|
||||
fmri=`svcs -H -o fmri "$1"`
|
||||
fmri=`svcs -H -o fmri "$1" 2>/dev/null`
|
||||
state=`svcs -H -o state "$fmri" 2>/dev/null`
|
||||
case "$state" in
|
||||
online*|offline*|maintenance)
|
||||
|
|
Loading…
Reference in New Issue