Public bug reported:
I recently switched from Ubuntu 24.04 to 26.04 (full install), and it
seems that services located in ~/.config/systemd/user are not started on
user login, even if they are wanted by default.target. Services in
/etc/systemd/user are started and drop-ins in .config/systemd/user are
taken into account.
STEPS :
1. Create new user named test.
2. Login to test.
3. Run systemctl --user edit --full --force essai.service
4. Type in
[Unit]
After=default.target
[Service]
ExecStart=true
RemainAfterExit=true
Type=oneshot
ExecStop=true
[Install]
WantedBy=default.target
5. Run systemctl --user enable essai.service.
6. Log out
7. Log in again (via ssh in my case)
EXPECTED :
systemctl --user is-active essai.service reports active.
OBSERVED :
systemctl --user is-active essai.service reports inactive.
MORE INFO :
systemctl --user is-enabled essai.service reports enabled.
systemctl --user is-active default.target reports active.
essai.service can be manually started and is then reported as active.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: systemd 259.5-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-22.22-generic 7.0.0
Uname: Linux 7.0.0-22-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Sun Jun 21 22:28:26 2026
EcryptfsInUse: Yes
InstallationDate: Installed on 2026-05-26 (26 days ago)
InstallationMedia: Kubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423)
MachineType: Dell Inc. Precision Tower 3620
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-22-generic
root=UUID=e222c9f6-aa87-40f1-874a-38f141cc4c66 ro video=DP-1:3840x2160
hibernation=no nvidia_drm.modeset=1
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/05/2024
dmi.bios.release: 2.33
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.33.0
dmi.board.name: 09WH54
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias:
dmi:bvnDellInc.:bvr2.33.0:bd11/05/2024:br2.33:svnDellInc.:pnPrecisionTower3620:pvr:rvnDellInc.:rn09WH54:rvrA00:cvnDellInc.:ct3:cvr:sku06B7:pfaPrecision:
dmi.product.family: Precision
dmi.product.name: Precision Tower 3620
dmi.product.sku: 06B7
dmi.sys.vendor: Dell Inc.
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2157754
Title:
services in user home dir not started
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2157754/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs