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

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

    <bug>
          <bug_id>30165</bug_id>
          
          <creation_ts>2014-07-07 15:16:14 +0400</creation_ts>
          <short_desc>preun_service оставляет за собой битые симлинки</short_desc>
          <delta_ts>2014-09-10 02:34:50 +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>service</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="Alexey Shabalin">shaba</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>real.altlinux.org</cc>
    
    <cc>shaba</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>147018</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2014-07-07 15:16:14 +0400</bug_when>
    <thetext>if sd_booted &amp;&amp; &quot;$SYSTEMCTL&quot; --version &gt;/dev/null 2&gt;&amp;1; then
        &quot;$SYSTEMCTL&quot; --no-reload -q disable &quot;$1.service&quot;
        &quot;$SYSTEMCTL&quot; stop &quot;$1.service&quot;
else
        chkconfig --del &quot;$1&quot;
        service &quot;$1&quot; condstop
fi

Если сервис не нативный, а sysv-скрипт, то --del не запускается, и остаются битые симлинки. systemctl disable перенаправляется на chkconfig off, а эта команда удаляет S* симлинк и создаёт K* симлинк(который и остаётся после удаления пакета).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147502</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2014-09-01 20:47:48 +0400</bug_when>
    <thetext>ping.
chkconfig --del надо запускать в любом случае, и при sysv, и при systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147638</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-09-10 02:34:50 +0400</bug_when>
    <thetext>service-0.5.26-alt1 -&gt; sisyphus:

* Tue Sep 09 2014 Dmitry V. Levin &lt;ldv@altlinux&gt; 0.5.26-alt1
- preun_service: added chkconfig call in systemd case (closes: #30165).
- service: added legacy-actions support (closes: #29925).
- sd_booted: synced systemd check with libsystemd.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>