Oh huh for the first time I'm about to use systemd for its intended purpose (as an init manager). I wonder how this is gonna go

I see systemctl has this --user command for connecting to your user service manager. Is there a way to connect to somebody else's service manager? Like say I'm root and I want to put something in user $OTHERUSER's user service manager. I guess I just use sudo -u $OTHERUSER?

Well I was hoping that when you use it for its actual intended purpose (initing) systemd would turn out to be pleasant and usable as opposed to obscurantist and sharp-edged like it has been for every other purpose I've tried to use it for, but

$ sudo -u bsky systemctl --user daemon-reload
Failed to connect to bus: No such file or directory

Nope. Nope!!!

journalctl has a --unit=UNIT command you can pass it that will cause it to journal for only one unit. The unit name here is defined by… what? The Description= in the .service file? The name of the .service file? The name of the .service file minus the suffix ".service"? A secret fourth thing?

Okay uhhhh I think I basically understand how to create and launch a systemd service now but I gotta say, despite it being a little less featureful I still think I like upstart better

It's me. I'm the person standing in the middle of the init.d vs systemd war going "You know, RC Cola is actually really good"

@mcc It's also handy for remembering that matrix indices are Row, Column.

@peterdrake Thank you… I will now never forget this again

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.