<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4213</bug_id>
          
          <creation_ts>2013-04-06 11:20:50 +0000</creation_ts>
          <short_desc>opkg: systemd service won&apos;t restart on upgrade</short_desc>
          <delta_ts>2013-04-12 12:43:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Installation</product>
          <component>Installation</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yevhen">kirgene</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31642</commentid>
    <comment_count>0</comment_count>
    <who name="Yevhen">kirgene</who>
    <bug_when>2013-04-06 11:20:50 +0000</bug_when>
    <thetext>When opkg is used as package manager and systemd is used as init system there is a problem with restarting systemd service on upgrading.
opkg doesn&apos;t call prerm script which should stop old service but calls postinst script that starts service. 
Therefore new service won&apos;t start since old one wasn&apos;t stopped.

Steps to reproduce:
1) Build a systemd based image with opkg package manager.
2) Start image.
3) Build any package that has systemd service (e.g. connman).
4) Copy two packages that was builded (e.g. &quot;connman&quot; and &quot;connman-systemd&quot;) from deploy/ipk/&lt;arch&gt; directory into image.
5) Make &quot;opkg install &lt;path to copied packages&gt;/connman*&quot; on image
6) Remove these packages (they do not needed anymore)
7) Increase package revision of connman.
8) Do step 3 - 5.
9) Make &quot;opkg install &lt;path to copied packages&gt;/connman*&quot; on image

Expected behavior:
In journalctl you have to see a message about stopping and starting connman service.

Actual behavior:
In journalctl you have to see an *error* message about starting connman service (service wasn&apos;t stopped).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31758</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-09 11:34:09 +0000</bug_when>
    <thetext>Clearly missing behaviour in opkg, but it&apos;s also documented missing behaviour in opkg.  I guess the postinst should restart, just in case we&apos;re running on opkg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31777</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-09 15:53:34 +0000</bug_when>
    <thetext>Filed #4232 for the opkg bug, and sent a patch to oe-core which changes postinst to &quot;restart&quot; the service instead of &quot;start&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32051</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-12 12:43:36 +0000</bug_when>
    <thetext>Fixed in oe-core 319ef0df4ae7ed0372eff90e11244123eccb023c.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>