Systemd service doesn't stay up after it starts at login #7

Closed
ryanprior opened this Issue Feb 17, 2017 · 2 comments

Comments

Projects
None yet
1 participant
Owner

ryanprior commented Feb 17, 2017

if I'm logged in and have the deb package installed, I can run systemctl --user start home-row-control.service and it'll start and stay up. But when my session starts, the service doesn't start up.

Owner

ryanprior commented Feb 17, 2017

Here's a terminal session recorded immediately after starting a new X session.

  1. I verify that the service is enabled but didn't come up.
  2. I start the service
  3. I verify that the service did come up.
ryan@butterfly:~$ systemctl --user status home-row-control.service 
● home-row-control.service - using caps-lock and enter as extra ctrl modifiers
   Loaded: loaded (/usr/lib/systemd/user/home-row-control.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: https://github.com/ryanprior/home-row-control/blob/master/README.md
ryan@butterfly:~$ systemctl --user start home-row-control.service 
ryan@butterfly:~$ systemctl --user status home-row-control.service 
● home-row-control.service - using caps-lock and enter as extra ctrl modifiers
   Loaded: loaded (/usr/lib/systemd/user/home-row-control.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-02-16 19:29:07 CST; 5s ago
     Docs: https://github.com/ryanprior/home-row-control/blob/master/README.md
  Process: 5273 ExecStart=/usr/local/bin/_home_row_control (code=exited, status=0/SUCCESS)
 Main PID: 5285 (xcape)
   CGroup: /user.slice/user-1000.slice/user@1000.service/home-row-control.service
           └─5285 xcape -e Hyper_L Return Control_R Caps_Lock

Feb 16 19:29:05 butterfly systemd[3388]: Starting using caps-lock and enter as extra ctrl modifiers...
Feb 16 19:29:05 butterfly _home_row_control[5273]: xmodmap:  please release the following keys within 2 seconds:
Feb 16 19:29:05 butterfly _home_row_control[5273]:     Hyper_L (keysym 0xffed, keycode 36)
Feb 16 19:29:07 butterfly systemd[3388]: Started using caps-lock and enter as extra ctrl modifiers.
Owner

ryanprior commented Feb 17, 2017

I resolved the issue using these steps:

systemctl --user daemon-reload
systemctl --user reenable home-row-control
# log out, log in

@ryanprior ryanprior closed this Feb 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment