<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 is-enabled does not work for templated units"
href="https://bugs.freedesktop.org/show_bug.cgi?id=55318">55318</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemctl is-enabled does not work for templated units
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eivind@uggedal.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>I expect templated units enabled with "systemctl enable" to be queryable with
"systemctl is-enabled":
# systemctl --version
systemd 189
arch
+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
# uname -a
Linux sodium 3.0.42-1-lts #1 SMP Mon Aug 27 19:44:47 CEST 2012 x86_64 GNU/Linux
# cat /etc/issue
Arch Linux \r (\l)
# cat /usr/lib/systemd/system/uwsgi@.service
[Unit]
Description=uWSGI service for %i
After=syslog.target
[Service]
ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/%i.ini
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
Restart=always
Type=simple
[Install]
WantedBy=multi-user.target
# systemctl enable <a href="mailto:uwsgi@mediaqueries.service">uwsgi@mediaqueries.service</a>
ln -s '/usr/lib/systemd/system/uwsgi@.service'
'/etc/systemd/system/multi-user.target.wants/<a href="mailto:uwsgi@mediaqueries.service">uwsgi@mediaqueries.service</a>'
# systemctl status <a href="mailto:uwsgi@mediaqueries.service">uwsgi@mediaqueries.service</a>
<a href="mailto:uwsgi@mediaqueries.service">uwsgi@mediaqueries.service</a> - uWSGI service for mediaqueries
Loaded: loaded (/usr/lib/systemd/system/uwsgi@.service; enabled)
Active: active (running) since Mon, 03 Sep 2012 12:29:37 +0200; 3
weeks and 1 days ago
Main PID: 21577 (uwsgi)
CGroup: name=systemd:/system/uwsgi@.service/mediaqueries
├ 21577 mediaqueries: uWSGI master
└ 21578 mediaqueries: uWSGI worker 1
# systemctl is-enabled <a href="mailto:uwsgi@mediaqueries.service">uwsgi@mediaqueries.service</a>
Failed to issue method call: No such file or directory
# systemctl is-enabled uwsgi@.service
enabled</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>