recentpopularlog in

kme : systemd   35

systemctl failed to get Dbus connection: No connection to service manager
It seems like a hot ticket, but this doesn't work if 'systemctl' depends on D-Bus being running. It's a total chicken-and-egg problem then. This is the case in the official Docker image for CentOS 7.

<code class="language-bash">sudo systemctl start dbus.service</code>
centos7  centos  docker  systemctl  systemd  dbus  annoyance 
june 2019 by kme
How do I make my systemd service run via specific user and start on boot? - Ask Ubuntu
tl;dr: Put the unit file in ~/.config/systemd/user, then enable it with 'systemctl --user enable'.
systemd  ubuntu  linux  sysadmin  initscript  sortof  solution 
december 2017 by kme
systemd for Administrators, Part III
So, let's jump right in. As an example we'll convert the init script of the ABRT daemon into a systemd service file. ABRT is a standard component of every Fedora install, and is an acronym for Automatic Bug Reporting Tool, which pretty much describes what it does, i.e. it is a service for collecting crash dumps. Its SysV script I have uploaded here.

Here's what I came up with for a Sinatra Rack app:

Description=Run manservant on port 9292
# source:



With the help of these references:

systemd  initsystem  sysadmin  tutorial  configfile  sortof  solution 
december 2017 by kme
Jorgen’s Weblog: Why systemd?
This is a really excellent explanation of why SysV init sucks, and the author even admits he's not a fan of systemd.
systemd  init  initsystem  unix  linux  thisvsthat  explained 
august 2017 by kme
upstart - Why the services do not start at installation? - Ask Ubuntu
invoke-rc.d: policy-rc.d denied execution of start.

I actually did this to myself, by following the directions here:

In the provisioning scripts I made for the VM at MLU, I had to prevent 'slurmdbd' from starting automatically because it would fail to run after initial install (probably could've solved this by creating the config files *first*, then installing the packages).

Also, it seems like the Debian packagers may have made a mistake, because it looks like 'munged' doesn't get started automatically after installation. So one of these two issues—or a combination—led to some head-scratching when I used the same provisioning scripts for another project (see bioreactor-vm#5).
debian  policy  errormessage  services  sysadmin  maybesolution  upstart  init  systemd 
october 2016 by kme
systemd/User - ArchWiki []
I used this setup for manservant (

<code class="language-ini">
Description=Run manservant on port 9292
# source:

ExecStart=/home/username/.gem/ruby/2.5.0/bin/bundle exec rackup


Then I enabled it with 'systemctl --user enable manservant.service' and I think that was basically it (?).
systemd  initscripts  linux  sysadmin  autostart  manservant  maybesolution 
june 2016 by kme
Apple's OS X Launchd is being ported to FreeBSD | The FreeBSD Forums
Example: the OS X plist editor. It's just an XML editor and can edit pretty much any configuration file on the machine.

Unless the GUI won't start
mac  osx  launchd  systemd  bsd  debate 
september 2015 by kme
Re: systemd and Linux are *fundamentally incompatible* -> and I can prove it
'Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface' (Doug McIlroy)
systemd  debate  linux  onethingwell 
september 2015 by kme
Gentoo Forums :: View topic - Gentoo 'lining up behind systemd'?
If systemd becomes a prerequsite for GNOME, its time to drop GNOME. The philosophy throughout all of *NIX is the programs do one thing and do it well.
It smacks of poor systems design to have your choice of GUI dictate your init manager as the two things are so far apart in the system that is GNU/Linux.

ulenrich wrote:
Then look at "man systemd.exec systemd.unit systemd.service" and you'll see what is game changing anyway ...

...and especially look at "top" and "mem" to see what the nonsense costs you permanently on running time and memory. Not to speak about the time you will need to debug due to the undeterministic boot process and broken log concept.

Leave alone the insane ideas like xml as part of the system software, binary log formats and so on. Or the constant public u-turns about just what the One True Way is this month.
gentoo  initsystems  sysvinit  openrc  systemd  gnome  discussion 
september 2015 by kme
Gmane -- Re: udev breakages was: Re: Need of an .async probe type of callback at driver s core Was: Re: PATCH media drxk: change it to use request firmware nowait
Kay, you are so full of sh*t that it's not funny. You're refusing to acknowledge your bugs, you refuse to fix them even when a patch is sent to you, and then you make excuses for the fact that we have to work around *your* bugs, and say that we should have done so from the very beginning.

Yes, doing it in the kernel is "more robust". But don't play games, and stop the lying. It's more robust because we have maintainers that care, and because we know that regressions are not something we can play fast and loose with. If something breaks, and we don't know what the right fix for that breakage is, we *revert* the thing that broke.
udev  systemd  linus  linux 
september 2015 by kme
The Six Stages of systemd [ 2014] - YouTube
Knuth is right: computer programming is not a science, but an art. System administration is an art too, and a black one at that. —Adam J. Thornton

There's nothing so much I personally enjoy as spending five minutes working out whether the complaint about it won't start because there's a lockfile means that I'm /actually/ stupidly trying to start up two instances of the same process *or* that the old one shat the bed and I'm on laundry duty again.

I work for a bank, so I have to work with "enterprise" software, which tends not to come packaged or with init scripts, because heaven only knows when you're paying $50,000 a CPU for something it's TOTALLY unreasonable to expect the vendor to put /any/ effort into customizing it for your platform. At the other end of the spectrum, because we have a horde of children doing web development with whatever exciting web framework they just read about on Hacker News this week, we're deploying Rails or Node.js or whatever pops up, and they're not really interested in doing any of the boring, un-sexy systems stuff either.
sysadmin  systemd  change  fivestages  video  talk 
september 2014 by kme

Copy this bookmark:

to read