[systemd-bugs] [Bug 65255] New: multiple .(dots) in unit file name does not work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jun 1 22:37:21 PDT 2013


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

          Priority: medium
            Bug ID: 65255
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: multiple .(dots) in unit file name does not work
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: ghodechhap at ghodechhap.net
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

If the unit file name contains multiple . characters such as
webproxy.container.service, systemctl cannot use it.

If the unit file is renamed such that it contains only one '.' character(e.g.
webproxy_container.sevice), systemctl can handle it.

Following is the defect reproduction on archlinux x86_64 with systemd 204.


[root at bheem shridhar]# cd /etc/systemd/system/multi-user.target.wants/

[root at bheem multi-user.target.wants]# cat webproxy_container.service 
[Unit]
Description=Container webproxy service

[Service]
Type=forking
ExecStart=/usr/bin/lxc-start -d -n webproxy
ExecStop=/usr/bin/lxc-stop -n webproxy
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

[root at bheem multi-user.target.wants]# systemctl start webproxy_container

[root at bheem multi-user.target.wants]# lxc-info -n webproxy
state:   RUNNING
pid:      2579

[root at bheem multi-user.target.wants]# systemctl stop webproxy_container

[root at bheem multi-user.target.wants]# lxc-info -n webproxy
state:   STOPPED
pid:        -1

[root at bheem multi-user.target.wants]# cp webproxy_container.service
webproxy.container.service 

[root at bheem multi-user.target.wants]# systemctl start webproxy.container
Failed to issue method call: Unit webproxy.container.service failed to load: No
such file or directory. See system logs and 'systemctl status
webproxy.container.service' for details.

[root at bheem multi-user.target.wants]# pacman -Qs systemd
local/initscripts 2012.10.1-1
    System initialization/bootup scripts
local/netctl 1.1-1 (base)
    Profile based systemd network management
local/systemd 204-2
    system and service manager
local/systemd-arch-units 20120915-2
    Arch specific Systemd unit files
local/systemd-sysvcompat 204-2 (base)                                           
    sysvinit compat for systemd

-- 
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/20130602/1c6818ab/attachment.html>


More information about the systemd-bugs mailing list