[systemd-bugs] [Bug 56500] New: Unknown lvalue 'ConditionFileNotEmpty' in section 'Unit'. Ignoring.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Oct 28 09:43:07 PDT 2012


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

          Priority: medium
            Bug ID: 56500
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Unknown lvalue 'ConditionFileNotEmpty' in section
                    'Unit'. Ignoring.
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: public.avatar at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

> cat /etc/systemd/system/sshd-keygen at .service 
[Unit]
Description=Generate SSH keys, if not present
ConditionPathExists=!/etc/ssh/ssh_host_%i_key 
ConditionFileNotEmpty=!/etc/ssh/ssh_host_%i_key
Before=sshd.service

[Service]
Type=oneshot
ExecStart=/bin/rm -f /etc/ssh/ssh_host_%i_key
ExecStart=/usr/bin/ssh-keygen -t %i -f /etc/ssh/ssh_host_%i_key -N ''

[Install]
RequiredBy=sshd.service

# systemctl daemon-reload
# journalctl -ban1 _COMM=systemd --no-pager
-- Logs begin at Mon, 2012-10-15 23:01:05 EEST, end at Fri, 2012-10-19 22:25:36
EEST. --
Oct 28 18:39:29 BlackICE systemd[1]:
[/etc/systemd/system/sshd-keygen at .service:4] Unknown lvalue
'ConditionFileNotEmpty' in section 'Unit'. Ignoring.

# man systemd.unit | grep -A 2 ConditionFileNotEmpty
       ConditionPathIsMountPoint=, ConditionPathIsReadWrite=,
ConditionDirectoryNotEmpty=, ConditionFileNotEmpty=,
       ConditionFileIsExecutable=, ConditionKernelCommandLine=,
ConditionVirtualization=, ConditionSecurity=,
       ConditionCapability=, ConditionHost=, ConditionNull=
--
           ConditionFileNotEmpty= is similar to ConditionPathExists= but
verifies whether a certain path exists and refers
           to a regular file with a non-zero size.

# systemctl --version
systemd 195
gentoo
+PAM +LIBWRAP +AUDIT -SELINUX +IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ

-- 
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/20121028/ab0ed745/attachment.html>


More information about the systemd-bugs mailing list