You are not logged in.

#1 2013-11-30 21:32:46

gsingh93
Member
Registered: 2013-07-19
Posts: 96

[SOLVED] Launching systemd service as non-root user

I need to launch a systemd service as a non-root user. I've looked at this but I'm fairly confused. I don't have xorg or any desktop environment installed (this is a remote server I SSH into) but when I run

systemctl --user status

I get

Failed to get D-Bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

What am I doing wrong?

Last edited by gsingh93 (2013-12-01 07:29:29)

Offline

#2 2013-12-01 07:30:10

gsingh93
Member
Registered: 2013-07-19
Posts: 96

Re: [SOLVED] Launching systemd service as non-root user

I was going in the wrong direction. All I had to do was add 'User=username' and 'Group=groupname' in the [Service] section.

Offline

Board footer

Powered by FluxBB