[systemd-bugs] [Bug 61535] New: systemctl injects an '-n' flag for the syslog-ng service when the service file is named syslog-ng.service

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 26 16:38:59 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=61535

          Priority: medium
            Bug ID: 61535
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemctl injects an '-n' flag for the syslog-ng
                    service when the service file is named
                    syslog-ng.service
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: major
    Classification: Unclassified
                OS: Linux (All)
          Reporter: nsane457 at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

When starting the service syslog-ng.service the service fails as described in
https://bugs.freedesktop.org/show_bug.cgi?id=61324 .

"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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130227/3f9e58fa/attachment.html>


More information about the systemd-bugs mailing list