user systemd services are not started on login

Bug #1547662 reported by Jonathan Kamens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have two user systemd services, which you can see running here:

● [hostname elided]
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Tue 2016-02-16 20:03:38 EST; 2 days ago
   CGroup: /user.slice/user-1000.slice/user@1000.service
           ├─1922 /lib/systemd/systemd --user
           ├─1969 (sd-pam)
           ├─x10-transceiver.service
           │ ├─6074 /usr/bin/perl /home/jik/src/CM19aDriver/service.pl
           │ ├─6075 python CM19aDriver.py
           │ └─6080 tail -f cm19a.log
           └─eruv.service
             └─6083 /usr/bin/perl /home/jik/scripts/eruv.pl

They're running because I did "systemctl --user start x10-transceiver" and "systemctl --user start eruv". They did NOT launch automatically when I logged in, which is what this bug report is about. They're supposed to.

Note that they are enabled:

● eruv.service - Eruv status checker
   Loaded: loaded (/home/jik/.config/systemd/user/eruv.service; enabled; vendor preset: enabled)

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: systemd 225-1ubuntu9
ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
Uname: Linux 4.2.0-27-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Feb 19 15:27:13 2016
InstallationDate: Installed on 2016-01-16 (34 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: Acer Predator G6-710
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.2.0-27-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: systemd
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/21/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: R01-A1
dmi.board.name: Predator G6-710
dmi.board.vendor: Acer
dmi.chassis.type: 3
dmi.chassis.vendor: Acer
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrR01-A1:bd09/21/2015:svnAcer:pnPredatorG6-710:pvr:rvnAcer:rnPredatorG6-710:rvr:cvnAcer:ct3:cvr:
dmi.product.name: Predator G6-710
dmi.sys.vendor: Acer

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Can you please give me the output of "systemctl --user status eruv.service"?

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

Sorry, that's already there, I meant "systemctl --user cat eruv.service"

Revision history for this message
Jonathan Kamens (jik) wrote :

# /home/jik/.config/systemd/user/eruv.service
[Unit]
Description=Eruv status checker

[Service]
ExecStart=/home/jik/scripts/eruv.pl

[Install]
WantedBy=multi-user.target

Changed in systemd (Ubuntu):
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote :

> WantedBy=multi-user.target

I had a hunch that this was the cause -- multi-user.target does not exist for user jobs, just "default.target". See "systemctl --user -t target". Can you change this to default.target, enable it again, and check again?

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Jonathan Kamens (jik) wrote :

OK then. Sorry for bothering you.

The documentation on this stuff is... sparse and difficult to navigate.

I'll make the change and reopen or open a new ticket if it still isn't working.

Changed in systemd (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.