[systemd-devel] user service not starting on login
Matt Zagrabelny
mzagrabe at d.umn.edu
Fri May 10 02:21:00 UTC 2019
Greetings,
I am attempting to get a user service running on my session login.
The unit is called jack. I've enabled it via:
$ systemctl --user enable jack
When I boot up the system and log in I see that it is inactive. I can start
it manually without issue:
$ systemctl --user status jack
● jack.service - JACK 2
Loaded: loaded (/home/theophilus/.config/systemd/user/jack.service;
enabled; vendor preset: enabled)
Active: inactive (dead)
$ journalctl --user -u jack -b
-- Logs begin at Thu 2019-05-09 20:54:31 CDT, end at Thu 2019-05-09
21:13:53 CDT. --
-- No entries --
$ systemctl --user cat jack
# /home/theophilus/.config/systemd/user/jack.service
[Unit]
Description=JACK 2
Before=sound.target
Before=pulseaudio.service
Requires=dbus.socket
[Service]
Type=dbus
BusName=org.jackaudio.Controller
ExecStart=/usr/bin/jack_control start
ExecStop=/usr/bin/jack_control stop
ExecStopPost=/usr/bin/pkill -9 jackdbus
SuccessExitStatus=0
RemainAfterExit=true
#Restart=always
#RestartSec=5
[Install]
WantedBy=default.target
WantedBy=sound.target
$ systemctl --user start jack
$ systemctl --user status jack
● jack.service - JACK 2
Loaded: loaded (/home/theophilus/.config/systemd/user/jack.service;
enabled; vendor preset: enabled)
Active: active (exited) since Thu 2019-05-09 21:15:29 CDT; 4s ago
Process: 1079 ExecStart=/usr/bin/jack_control start (code=exited,
status=0/SUCCESS)
Main PID: 1079 (code=exited, status=0/SUCCESS)
May 09 21:15:29 calvary systemd[672]: Starting JACK 2...
May 09 21:15:29 calvary jack_control[1079]: --- start
May 09 21:15:29 calvary systemd[672]: Started JACK 2.
What am I missing?
Thanks for the help!
-m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190509/37187e21/attachment-0001.html>
More information about the systemd-devel
mailing list