You are not logged in.

#1 2013-04-11 02:23:56

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Systemd --user not autostarting jobs

I am playing around with the idea of switching all my user jobs to be controlled by Systemd, I followed the wiki on the matter but none of the are auto starting but work fine when I start them manually.

when my .xinitrc only contains the systemd --user line Xorg starts but nothing else starts, after changing it to

#!/bin/sh

systemd --user &
exec /home/vendion/gocode/bin/wingo

My window manager starts but nothing else does, my systemd unit files are as follows:

default.target	mystuff.target	mystuff.target.wants  wingo.service  wm.target	wm.target.wants  xcompmgr@.service

I ran "systemctl --user enable" on both wingo.service and xcompmgr@.service, when I run the xcompmgr unit manually via "systemctl --user start xcompmgr@:0.service" it runs fine and starts up xcompmgr so I know it is not an issue with the unit file itself.

This is what my units look like:

arch-testing% cat wm.target
[Unit]
Description=Window manager target
Wants=xorg.target
Wants=mystuff.target
Requires=dbus.socket
AllowIsolate=true

[Install]
Alias=default.target
arch-testing% cat mystuff.target
[Unit]
Description=Xinitrc Stuff
Wants=wm.target

[Install]
Alias=default.target
arch-testing% cat wingo.service 
[Unit]
Description=Wingo window manager service
Before=mystuff.target
After=xorg.target
Requires=xorg.target

[Service]
ExecStart=/home/vendion/gocode/bin/wingo
Restart=always
RestartSec=10

[Install]
WantedBy=wm.target
arch-testing% cat xcompmgr@.service 
[Unit]
Description=xcompmgr start script

[Service]
ExecStart=/usr/bin/xcompmgr
Environment=DISPLAY=%i

[Install]
WantedBy=mystuff.target

Any clues that would help debug this issue?

Offline

Board footer

Powered by FluxBB