<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>30268</bug_id>
          
          <creation_ts>2014-08-30 01:57:42 +0400</creation_ts>
          <short_desc>service sc status всегда возвращает 0</short_desc>
          <delta_ts>2014-08-30 14:23:15 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>shapercontrol</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Efremov">sem</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>147470</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2014-08-30 01:57:42 +0400</bug_when>
    <thetext>Даже если сервис не стартовал status всегда возвращает 0.
Надо либо в самом shapercontrol что-то менять, либо грепать его вывод.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147472</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2014-08-30 10:01:01 +0400</bug_when>
    <thetext>это как воспроизвести ?

[root@riderkvmS ~]# shapercontrol status
verbose = 3
sc: no shaping rules found
[root@riderkvmS ~]# echo $?
3

можно увидеть вывод shapercontrol status в описываемой ситуации ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147474</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2014-08-30 13:46:10 +0400</bug_when>
    <thetext>[root@c244 ~]# service sc status
sc: unable to read configuration file /etc/sc/sc.conf at /usr/sbin/shapercontrol line 625.
	main::log_carp(&apos;unable to read configuration file /etc/sc/sc.conf&apos;) called at /usr/sbin/shapercontrol line 350
sc: no shaping rules found
[root@c244 ~]# echo $?
0

Это при отсутствии /etc/sc/sc.conf совсем. При его наличии все равно видел 0, возможно при этом оно ругалось на какие-то параметры в конфиге (хотя start все равно правила применял).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147475</commentid>
    <comment_count>3</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2014-08-30 13:48:21 +0400</bug_when>
    <thetext>А, это только в init-скрипте проблема, похоже:
[root@c244 ~]# shapercontrol status
sc: unable to read configuration file /etc/sc/sc.conf at /usr/sbin/shapercontrol line 625.
	main::log_carp(&apos;unable to read configuration file /etc/sc/sc.conf&apos;) called at /usr/sbin/shapercontrol line 350
sc: no shaping rules found
[root@c244 ~]# echo $?
3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147476</commentid>
    <comment_count>4</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2014-08-30 13:54:31 +0400</bug_when>
    <thetext>Там просто опечатка
s/REVAL/RETVAL/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147477</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-08-30 14:23:15 +0400</bug_when>
    <thetext>shapercontrol-1.5.1-alt5 -&gt; sisyphus:

* Sat Aug 30 2014 Anton Farygin &lt;rider@altlinux&gt; 1.5.1-alt5
- fixed typo in iniscript (closes: #30268)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>