<?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>6142</bug_id>
          
          <creation_ts>2014-04-09 20:24:55 +0000</creation_ts>
          <short_desc>we need general documentation on Systemd vs SysV related issues</short_desc>
          <delta_ts>2023-04-28 15:03:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>General Docs</product>
          <component>docs-general</component>
          <version>3.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>June 05, 2019: Proposed doc solution.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>4.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Rifenbark">srifenbark</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>kai.kang</cc>
    
    <cc>mark.morton</cc>
    
    <cc>michael.opdenacker</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42472</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-09 20:24:55 +0000</bug_when>
    <thetext>I am creating this bug because the bug 4969 was too large in scope to deal with prior to the 1.6 YP release.  This new bug will track the effort to document the Systemd vs. SysV related issues. 

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43490</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-05-22 08:54:20 +0000</bug_when>
    <thetext>Hi, 

I need some information on this.  Can someone provide me with a set of issues we need to document?  bug 4969 has a few listed in the thread (service for hwclock, modutils-initscripts, and init-ifupdown).  

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43727</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-06-03 09:21:33 +0000</bug_when>
    <thetext>Setting target to 1.7 M3.  Still need information from someone (not sure who) to proceed on this bug.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43769</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-04 15:41:47 +0000</bug_when>
    <thetext>Ross, can you help Scott with this please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44614</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-07-22 08:29:54 +0000</bug_when>
    <thetext>Changing to NEEDINFO.  

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61235</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-04-14 15:48:22 +0000</bug_when>
    <thetext>Still no input for this issue.  I am moving it to 2.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82612</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2018-12-27 23:25:16 +0000</bug_when>
    <thetext>We are up to 2.7 (Warrior) now and this bug seems to be getting no attention.  Wondering if it is still applicable.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82856</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Morton">mark.morton</who>
    <bug_when>2019-01-24 21:07:47 +0000</bug_when>
    <thetext>I have some information on comparisons between sysvinit and systemd that I can put together from my existing doc sources, and also configuration information from local.conf for what to comment out to use sysvinit 9with systemd as default), for example:
---------
# comment the following lines to use &apos;sysvinit&apos; as the init manager
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
DISTRO_FEATURES_append = &quot; systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED += &quot;sysvinit&quot;
KERNEL_FEATURES_append = &quot; cfg/systemd.scc&quot;
---------

I also additionally have examples for each for starting/stopping services. 

What I need for additional information is related to specific Yocto usage, such as supported distro or image recipes, limitations, or caveats (could be kernel/bsp-related, or something similar) and anything else our users might need to know concerning a service manager.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82859</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2019-01-24 21:19:27 +0000</bug_when>
    <thetext>Great stuff to get this bug moving forward again.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82867</commentid>
    <comment_count>9</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2019-01-25 16:59:00 +0000</bug_when>
    <thetext>It appears this is moving forward, dropping NEEDINFO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82872</commentid>
    <comment_count>10</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2019-01-25 18:26:17 +0000</bug_when>
    <thetext>Actually, I think Mark still needs some INFO if I am not wrong.  See the last part of Comment 7.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82874</commentid>
    <comment_count>11</comment_count>
    <who name="Mark Morton">mark.morton</who>
    <bug_when>2019-01-25 18:55:21 +0000</bug_when>
    <thetext>Scott is correct. I do have info to get started, but am missing (what I think) is important information, considering there&apos;s no place else for people to find Yocto-specific services manager info, and aside from the general configuration info, the rest is generic across all Linux platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82875</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-01-25 19:14:48 +0000</bug_when>
    <thetext>I added Kai since he is going to enable systemd as the default init for the poky example distro ( https://bugzilla.yoctoproject.org/show_bug.cgi?id=13031 ). 

Anyway, here are my thoughts wrt your questions:

&gt; supported distro or image recipes, 
oe-core and of course poky support both sysvinit and systemd
Hopefully we get poky switch over to default to systemd in 2.7 and if not 2.8.

Other distros set their own policies about support.

&gt; limitations, or caveats (could be kernel/bsp-related, or something similar) 

Hmm, this could start a flame war! :)
The two systems have a significantly different approaches. 
Here&apos;s a dated but reasonable comparison:
  https://www.tecmint.com/systemd-replaces-init-in-linux/
Google can help to find many more.

I&apos;m not aware of any comparisons that focus on low memory/cpu power systems that some YP users would be targetting but certainly for systems with memory constraints, sysvinit will leave more memory available for the user&apos;s application. You should try to avoid picking sides!  


&gt; and anything else our users might need to know concerning a service manager.

In my opinion, unless you have severe requirements such as cpu, memory constraints, the features that systemd offers and the fact that it&apos;s the default init system on most non-embedded and many embedded targets means that it should be the default in Yocto. We intend to switch poky over and in my opinion oe-core should follow in a release or two.

I expect that we&apos;ll continue to support sysvinit  for many many years for the &lt; ~20% of Yocto userbase that want/need a simpler, lighter-weight init system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82949</commentid>
    <comment_count>13</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-02-02 17:02:46 +0000</bug_when>
    <thetext>Re-assign to Mark Morton who is the docs guys. Kai is CCed and on holiday next week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84064</commentid>
    <comment_count>14</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2019-06-05 15:51:29 +0000</bug_when>
    <thetext>I am thinking of significantly adding to the &quot;Selecting an Initialization Manager&quot; section (https://yoctoproject.org/docs/2.8/dev-manual/dev-manual.html#selecting-an-initialization-manager), which is in the dev-manual, to address comparisons and general information about both systemd and SysV.  Right now, this section stated SysV as the Yocto default.  Has that changed (see Comment 7) below?  

This new section would satisfy the doc part of this bug I believe.  However, there are a lot a &quot;systemd&quot; references throughout the YP doc set that I would need to individually look and and probably reference into a new section.

An additional new small section could be added to the YP Overview and Concepts manual that introduces these two init managers.  In the concepts manual, I could do the comparison discussion there.  If so, the section for &quot;Selecting an Initialization Manager&quot; could reference to the overview manual&apos;s section for the conceptual information.  This would leave the section in the dev-manual reserved for how to actually select and use the init manager.

Does this sound like a good strategy?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95477</commentid>
    <comment_count>15</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-04-28 15:03:41 +0000</bug_when>
    <thetext>We now have more details about systemd vs sysvinit vs BusyBox init:
https://git.yoctoproject.org/yocto-docs/commit/?id=fd99f2753b50b7ad6133b787b90331fcb3a35152

This closes this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>