smf-tools (2.10-5) unstable; urgency=low

* svcstatus: close stderr on the first svcs invocation
This commit is contained in:
Igor Pashev 2013-05-12 00:17:49 +04:00
parent 16b964b030
commit 4b5703fbb6
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)