История изменений
Исправление intelfx, (текущая версия) :
Если только так.
/etc/systemd/system/user-hack@.service:
[Unit]
Description=Set permissions for user@%i.service control groups
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'chown %I /sys/fs/cgroup/*/$(systemctl show -p ControlGroup user@%i.service | cut -d= -f2)'
/etc/systemd/system/user@.service.d/hack.conf:
[Unit]
Wants=user-hack@%i.service
After=user-hack@%i.service
Исходная версия intelfx, :
Если только так: /etc/systemd/system/user-hack@.service:
[Unit]
Description=Set permissions for user@%i.service control groups
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'chown %I /sys/fs/cgroup/*/$(systemctl show -p ControlGroup user@%i.service | cut -d= -f2)'
/etc/systemd/system/user@.service.d/hack.conf:
[Unit]
Wants=user-hack@%i.service
After=user-hack@%i.service