<?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>5734</bug_id>
          
          <creation_ts>2014-01-17 08:45:32 +0000</creation_ts>
          <short_desc>systemd - enable/disable service - fails</short_desc>
          <delta_ts>2015-08-07 13:51:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sstncr</cc>
          
          <qa_contact name="Ionut Chisanovici">ionutx.chisanovici</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39885</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-01-17 08:45:32 +0000</bug_when>
    <thetext>STATUS: RUNNING
BUILD: 1.6_M2_RC1: e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371
ENVIRONMENT: Multiple environments
STEPS TO REPRODUCE: 
  
Prepare a core-image-minimal image with systemd support and launch it. 
     Refer to TC-549 in order how to build it.
Show status of a service
    # systemctl show syslog.socket
Stop a running service:
    # systemctl stop syslog.socket
Enable a service:
    # systemctl enable syslog.socket
Verify the service status:
    # systemctl is-enabled syslog.socket
Disable the service
    # systemctl disable syslog.socket
Verify the service status:
    # systemctl is-enabled syslog.socket

EXPECTED OUTCOME: 2. Information should be displayed for the service
3. The service is stopped
4. The service is enabled
5. It is displayed that the service appears to be enabled
6. The service is disabled
7. It is displayed that the service appears to be disabled

Actual outcome:

1. When running systemctl stop syslog.socket, the service is not stopped:

root@qemux86:~# systemctl stop syslog.socket
root@qemux86:~# ps | grep syslog
  100 root      2480 S    /sbin/syslogd -n -C

2. When running systemctl enable syslog.socket, following issue appear:

root@qemux86:~# systemctl enable syslog.socket
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit&apos;s
   .wants/ or .requires/ directory.
2) A unit&apos;s purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

3. When disabling the service, systemctl shows the syslog.socket as being static and not as disabled/enabled:

root@qemux86:~# systemctl disable syslog.socket
root@qemux86:~# systemctl is-enabled syslog.socket
static

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39911</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2014-01-17 16:20:43 +0000</bug_when>
    <thetext>This isn&apos;t a bug, the TC should be updated. syslog.socket isn&apos;t a good option for a systemd unit file to test.
syslog.socket is a static unit file and that&apos;s the intended behaviour.
avahi-daemon.service it&apos;s much better choice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39938</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2014-01-20 18:32:11 +0000</bug_when>
    <thetext>Ionut: can we update the TC and pick another unit file to test? avahi-daemon.service is a good choice.

syslog.socket it&apos;s a static unit file and you can&apos;t use enable/disable for those.
systemctl list-unit-files whill show you which units are static and which are enabled/disabled, so don&apos;t pick one from the static list (think of those as dependecies, they are started by a service file, in this case busybox-syslog.service or syslogd.services starts the socket)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39946</commentid>
    <comment_count>3</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-01-21 08:53:45 +0000</bug_when>
    <thetext>Ok, this will be closed.
Verified.

Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42675</commentid>
    <comment_count>4</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-04-15 12:55:55 +0000</bug_when>
    <thetext>Verified and closed.

IonutC</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>