<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 --- - Unknown lvalue 'ConditionFileNotEmpty' in section 'Unit'. Ignoring."
href="https://bugs.freedesktop.org/show_bug.cgi?id=56500">56500</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unknown lvalue 'ConditionFileNotEmpty' in section 'Unit'. Ignoring.
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>blocker
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>public.avatar@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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><span class="quote">> cat /etc/systemd/system/sshd-keygen@.service </span >
[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@.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</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>