Debian TC vote on init system coupling
Debian TC vote on init system coupling
Posted Feb 23, 2014 20:34 UTC (Sun) by mathstuf (subscriber, #69389)In reply to: Debian TC vote on init system coupling by AngryChris
Parent article: Debian TC vote on init system coupling
Posted Feb 23, 2014 22:18 UTC (Sun)
by set (guest, #4788)
[Link] (13 responses)
Posted Mar 2, 2014 9:26 UTC (Sun)
by elvis_ (guest, #63935)
[Link] (12 responses)
Posted Mar 2, 2014 14:26 UTC (Sun)
by rahulsundaram (subscriber, #21946)
[Link] (11 responses)
Posted Mar 8, 2014 6:25 UTC (Sat)
by elvis_ (guest, #63935)
[Link] (10 responses)
I would much prefer unitfile.default and unitfile.localchanges in the same directory.
Posted Mar 8, 2014 8:52 UTC (Sat)
by zdzichu (subscriber, #17118)
[Link] (9 responses)
1) unit location is in the second line of status output:
2) If administrator does customistation by drop-in snippets, all are listed in next line:
3) administrator can review his own changes in /etc/systemd/system. To see final unit, ”systemctl cat” will merge all the changes and present the unit from systemd's point of view.
It is actually quite easy and clear to see what's going on.
Posted Mar 8, 2014 15:53 UTC (Sat)
by raven667 (subscriber, #5198)
[Link] (8 responses)
Posted Mar 8, 2014 17:05 UTC (Sat)
by rahulsundaram (subscriber, #21946)
[Link] (7 responses)
Posted Mar 8, 2014 18:15 UTC (Sat)
by dlang (guest, #313)
[Link] (5 responses)
Posted Mar 8, 2014 18:21 UTC (Sat)
by rahulsundaram (subscriber, #21946)
[Link]
Posted Mar 8, 2014 23:42 UTC (Sat)
by anselm (subscriber, #2796)
[Link] (3 responses)
Here's your system administration convention:
Exactly how does systemd »throw away« anything? If anything, System V init is ignoring the convention by putting loads of stuff into /etc that is really quite difficult to change without producing a maintenance nightmare.
Posted Mar 9, 2014 4:19 UTC (Sun)
by dlang (guest, #313)
[Link] (2 responses)
Posted Mar 9, 2014 5:13 UTC (Sun)
by rahulsundaram (subscriber, #21946)
[Link] (1 responses)
Ex:
--
[Service]
--
man systemd.unit more details
Posted Mar 9, 2014 13:25 UTC (Sun)
by anselm (subscriber, #2796)
[Link]
This is particularly useful because in the systemd setup the configuration files provided by the distribution are cleanly separated from the local settings made by the administrator.
With something like System-V init, everyone unloads their init files in /etc/init.d, and it is difficult for an administrator to (a) see whether any of these scripts have indeed been changed to better suit local preferences, and (b) maintain such changes across updates from the distributor. Systemd makes this much more obvious because anything under /etc is by definition a local change, and updates to the distributor-provided configuration in /usr do not run the risk of either obliterating the local changes or else requiring a tedious manual merge.
Posted Mar 8, 2014 18:29 UTC (Sat)
by raven667 (subscriber, #5198)
[Link]
Certainly in this case there are pros and cons of each approach, which I tried to highlight and provide some guesses of possible rationale for each, none of which was "just because".
Debian TC vote on init system coupling
Debian TC vote on init system coupling
Debian TC vote on init system coupling
Debian TC vote on init system coupling
Debian TC vote on init system coupling
And systemctl make it dead simple to see where from configuration is gathered.
$ systemctl status gdm
gdm.service - GNOME Display Manager
Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled)
…
$ systemctl status privoxy
privoxy.service - Privoxy Web Proxy With Advanced Filtering Capabilities
Loaded: loaded (/usr/lib/systemd/system/privoxy.service; enabled)
Drop-In: /etc/systemd/system/privoxy.service.d
└─after-tor.conf
Debian TC vote on init system coupling
Debian TC vote on init system coupling
Debian TC vote on init system coupling
Debian TC vote on init system coupling
Debian TC vote on init system coupling
The distribution provides basic systemd units below /usr, and local changes to those systemd units, or all-new systemd units, go into /etc. Systemd figures out how these go together, and provides tools that make it easy to find the effective configuration that is actually being used. It is actually quite nifty.
Debian TC vote on init system coupling
Debian TC vote on init system coupling
/etc/systemd/system/httpd.service.d/restart.conf
Restart=always
RestartSec=30
Debian TC vote on init system coupling
Debian TC vote on init system coupling