<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - systemctl injects an '-n' flag for the syslog-ng service when the service file is named syslog-ng.service"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=61535">61535</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemctl injects an '-n' flag for the syslog-ng service when the service file is named syslog-ng.service
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nsane457@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When starting the service syslog-ng.service the service fails as described in
<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - systemd implicitly depends on all compatible syslog daemons to support the "-n" switch for foreground mode"
   href="show_bug.cgi?id=61324">https://bugs.freedesktop.org/show_bug.cgi?id=61324</a> .

"journalctl --no-pager -o verbose -xan" displays:

-- Unit syslog-ng.service has begun starting up.
Tue 2013-02-26 19:17:04 EST
[s=4bf1de8dd3124568a43961db7461c296;i=1c5c;b=63ee8a7e2426480fbcc4c70adcb14b7e;m=63c0ffa7;t=4d6a9b197c402;x=13152f7c6b85e8ff]
        _UID=0
        _GID=0
        _BOOT_ID=63ee8a7e2426480fbcc4c70adcb14b7e
        _MACHINE_ID=6a1d4ffd3e67b15aac8170c451004e6b
        _HOSTNAME=Laptop-PC
        PRIORITY=7
        SYSLOG_IDENTIFIER=systemd
        SYSLOG_FACILITY=3
        _TRANSPORT=journal
        _PID=1
        _COMM=systemd
        _EXE=/usr/lib64/systemd/systemd
        _CMDLINE=/usr/bin/systemd  
        _SYSTEMD_CGROUP=/system
       
CODE_FILE=/var/tmp/portage/sys-apps/systemd-197.9999/work/systemd-197.9999/src/core/execute.c
        CODE_LINE=1022
        CODE_FUNCTION=exec_spawn
        UNIT=syslog-ng.service
        MESSAGE=About to execute /usr/sbin/syslog-ng -n
        _SOURCE_REALTIME_TIMESTAMP=1361924224160042



However, after the following commands:

cp /usr/lib/systemd/system/syslog-ng.service
/usr/lib/systemd/system/test-syslog.service

systemctl stop syslog-ng

systemctl disable syslog-ng

systemctl enable test-syslog

systemctl start test-syslog



The following is displayed from journal:



-- Unit test-syslog.service has begun starting up.
Tue 2013-02-26 19:09:53 EST
[s=4bf1de8dd3124568a43961db7461c296;i=1889;b=63ee8a7e2426480fbcc4c70adcb14b7e;m=4a144d2a;t=4d6a997eb1183;x=b65a98c091ef07e2]
        _UID=0
        _GID=0
        _BOOT_ID=63ee8a7e2426480fbcc4c70adcb14b7e
        _MACHINE_ID=6a1d4ffd3e67b15aac8170c451004e6b
        _HOSTNAME=Laptop-PC
        PRIORITY=7
        SYSLOG_IDENTIFIER=systemd
        SYSLOG_FACILITY=3
        _TRANSPORT=journal
        _PID=1
        _COMM=systemd
        _EXE=/usr/lib64/systemd/systemd
        _CMDLINE=/usr/bin/systemd  
        _SYSTEMD_CGROUP=/system
       
CODE_FILE=/var/tmp/portage/sys-apps/systemd-197.9999/work/systemd-197.9999/src/core/execute.c
        CODE_LINE=1022
        CODE_FUNCTION=exec_spawn
        UNIT=test-syslog.service
        MESSAGE=About to execute /usr/sbin/syslog-ng -F
        _SOURCE_REALTIME_TIMESTAMP=1361923793407970



systemd correctly interprets the "-F" flag when the syslog-ng.service is named
test-syslog, but injects the '-n' flag if the name remains syslog-ng.service.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>