[systemd-bugs] [Bug 55318] New: systemctl is-enabled does not work for templated units
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 25 07:14:58 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=55318
Priority: medium
Bug ID: 55318
Assignee: systemd-bugs at lists.freedesktop.org
Summary: systemctl is-enabled does not work for templated units
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: eivind at uggedal.com
Hardware: All
Status: NEW
Version: unspecified
Component: general
Product: systemd
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 at .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 uwsgi at mediaqueries.service
ln -s '/usr/lib/systemd/system/uwsgi at .service'
'/etc/systemd/system/multi-user.target.wants/uwsgi at mediaqueries.service'
# systemctl status uwsgi at mediaqueries.service
uwsgi at mediaqueries.service - uWSGI service for mediaqueries
Loaded: loaded (/usr/lib/systemd/system/uwsgi at .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 at .service/mediaqueries
├ 21577 mediaqueries: uWSGI master
└ 21578 mediaqueries: uWSGI worker 1
# systemctl is-enabled uwsgi at mediaqueries.service
Failed to issue method call: No such file or directory
# systemctl is-enabled uwsgi at .service
enabled
--
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/20120925/342c8ccb/attachment-0001.html>
More information about the systemd-bugs
mailing list