recentpopularlog in

kme : initsystem   7

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:

<code>
[Unit]
Description=Run manservant on port 9292
# source: http://0pointer.de/public/systemd-man/systemd.special.html
After=network.target

[Service]
;User=ern6xv
ExecStart=/usr/local/bin/rackup
Type=simple
Restart=on-abnormal
WorkingDirectory=/home/ern6xv/devel/developer/manservant

[Install]
WantedBy=multi-user.target
</code>

With the help of these references:

- http://0pointer.de/public/systemd-man/systemd.service.html
- http://0pointer.de/public/systemd-man/systemd.exec.html
- http://0pointer.de/public/systemd-man/systemd.exec.html
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

Copy this bookmark:





to read