123456789101112131415161718192021222324252627282930313233 |
- # See https://serverfault.com/questions/936985/cannot-use-systemctl-user-due-to-failed-to-get-d-bus-connection-permission
- # for why we have to do this kind of thing on CentOS/AmazonLinux
- [Unit]
- Description=User Manager for UID %i
- After=systemd-user-sessions.service
- # These are present in the RHEL8 version of this file except that the unit is Requires, not Wants.
- # It's listed as Wants here so that if this file is used in a RHEL7 settings, it will not fail.
- # If a user upgrades from RHEL7 to RHEL8, this unit file will continue to work until it's
- # deleted the next time they upgrade Tableau Server itself.
- After=user-runtime-dir@%i.service
- Wants=user-runtime-dir@%i.service
- [Service]
- LimitNOFILE=infinity
- LimitNPROC=infinity
- User=%i
- PAMName=systemd-user
- Type=notify
- # PermissionsStartOnly is deprecated and will be removed in future versions of systemd
- # This is required for all systemd versions prior to version 231
- PermissionsStartOnly=true
- ExecStartPre=/bin/loginctl enable-linger %i
- ExecStart=-/lib/systemd/systemd --user
- Slice=user-%i.slice
- KillMode=mixed
- Delegate=yes
- TasksMax=infinity
- Restart=always
- RestartSec=15
- [Install]
- WantedBy=default.target
|