Skip to content

Instantly share code, notes, and snippets.

@uggedal
Created September 25, 2012 11:52
Show Gist options
  • Save uggedal/3781316 to your computer and use it in GitHub Desktop.
Save uggedal/3781316 to your computer and use it in GitHub Desktop.
systemctl is-enabled does not work with templated units
# 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)
# systemctl enable uwsgi@mediaqueries.service
ln -s '/usr/lib/systemd/system/uwsgi@.service' '/etc/systemd/system/multi-user.target.wants/uwsgi@mediaqueries.service'
# systemctl status uwsgi@mediaqueries.service
uwsgi@mediaqueries.service - 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 uwsgi@mediaqueries.service
Failed to issue method call: No such file or directory
# systemctl is-enabled uwsgi@.service
enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment