mcc,
@mcc@mastodon.social avatar

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

mcc,
@mcc@mastodon.social avatar

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?

mcc,
@mcc@mastodon.social avatar
mcc,
@mcc@mastodon.social avatar

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!!!

mcc,
@mcc@mastodon.social avatar

Me: Systemd, please restart my services

Systemd:

https://www.youtube.com/watch?v=_Tr8KRqyGJk&t=60s

mcc,
@mcc@mastodon.social avatar

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?

mcc,
@mcc@mastodon.social avatar

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

mcc,
@mcc@mastodon.social avatar

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"

cr1901,
@cr1901@mastodon.social avatar

@mcc Okay, but RC Cola isn't bad :D!

peterdrake,
@peterdrake@qoto.org avatar

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

mcc,
@mcc@mastodon.social avatar

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

mcc,
@mcc@mastodon.social avatar

Wait FUCK that wasn't a joke about rc.d. I just actually like RC Cola

joshuaelliott,
@joshuaelliott@mastodon.social avatar

@mcc SAME. And not just metaphorically because I'm the guy that tries the fringe features of stuff and starts loving them -- and is usually gutted when they get removed...

takes a deep breath

...but because RC is ACTUALLY A GREAT COLA and I don't care who knows I love it.

pmzeitler,
@pmzeitler@mastodon.social avatar

@mcc It is pretty good, yeah. I'm fond of the cherry variety but it's hard to come by even here in Pensyltucky.

dr_a,
@dr_a@mastodon.social avatar

@mcc It’s a damning criticism of something if upstart is a better experience.

SnoopJ,
@SnoopJ@hachyderm.io avatar

@mcc that...is a really good question. I think from a quick consult of systemd.unit(5) that the name is formally the filename including the suffix (.service or otherwise) with the big coming before being called the "name prefix" or "unit prefix" (these two terms appear to be synonyms and are used in adjacent sentences with no explanation)

But journalctl --unit also accepts a pattern, which is I think why journalctl --unit cybersyn will show you logs for cybersyn.service

GBrayUT,
@GBrayUT@hachyderm.io avatar

@SnoopJ @mcc I also giggle like a schoolboy every time I use the shorthand for following unit logs: journalctl -fu docker 😆

mcc,
@mcc@mastodon.social avatar

@GBrayUT @SnoopJ Have you ever heard of Mercurial? It's a git alternative. Anyway there's a command in Mercurial that's incredibly useful, you find yourself typing it all the time, it's

hg di -c tip

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • cubers
  • magazineikmin
  • InstantRegret
  • osvaldo12
  • khanakhh
  • Youngstown
  • ethstaker
  • slotface
  • rosin
  • kavyap
  • mdbf
  • ngwrru68w68
  • thenastyranch
  • DreamBathrooms
  • JUstTest
  • everett
  • modclub
  • Durango
  • Leos
  • tester
  • GTA5RPClips
  • cisconetworking
  • tacticalgear
  • anitta
  • provamag3
  • normalnudes
  • megavids
  • lostlight
  • All magazines