Difference between revisions of "DeveloperWiki:Systemd"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:DeveloperWiki]]
 
[[Category:DeveloperWiki]]
This page is for planning.  
+
This page is for planning.
 +
 
 +
==Packaging notes==
 +
 
 +
===tmpfiles.d===
 +
* Instead of creating necessary runtime directories and files when a service is started (as some rc scripts do), ship a {{ic|tmpfiles.d(5)}} config file
 +
* Add a line {{ic|systemd-tmpfiles --create foo.conf}} to {{ic|post_install}} (and {{ic|post_upgrade}} if needed) to ensure the necessary runtime files are created on install, not just on the next boot
 +
{{Tip|This feature can be used for a whole lot of other things, e.g. for writing to arbitrary files, even in /sys}}
 +
 
 +
===modules-load.d===
 +
* Instead of loading necessary modules when a service is started (as some rc scripts do), ship a {{ic|modules-load.d(5)}} config file
 +
* Add {{ic|modprobe}} lines to {{ic|post_install}} (and {{ic|post_upgrade}} if needed) to ensure the necessary modules are loaded on install, not just on the next boot
  
 
==TODO list==
 
==TODO list==

Revision as of 18:20, 27 August 2012

This page is for planning.

Packaging notes

tmpfiles.d

  • Instead of creating necessary runtime directories and files when a service is started (as some rc scripts do), ship a tmpfiles.d(5) config file
  • Add a line systemd-tmpfiles --create foo.conf to post_install (and post_upgrade if needed) to ensure the necessary runtime files are created on install, not just on the next boot
Tip: This feature can be used for a whole lot of other things, e.g. for writing to arbitrary files, even in /sys

modules-load.d

  • Instead of loading necessary modules when a service is started (as some rc scripts do), ship a modules-load.d(5) config file
  • Add modprobe lines to post_install (and post_upgrade if needed) to ensure the necessary modules are loaded on install, not just on the next boot

TODO list

  • Update our servers
  • Update arch-install-scripts and installation medias
  • Update devtools
    • On brynhild, devtools are broken at the moment, due to systemd 188's shared mounts
      • To fix this, mkarchroot would need to unshare mounts, then (in the new namespace) make all mounts slaves
      • systemd 189 may make nspawn suitable for use in mkarchroot
  • Reorganize systemd and sysvinit packages:
    • Merge systemd back to a single package (aside from sysvcompat), add to base group
    • Split off some of the tools from sysvinit (pidof, last, ...)
    • Only sysvcompat and sysvinit should conflict, allowing initscripts and sysvcompat to be installed at the same time
      • Merge locale.sh from initscripts/sysvcompat to systemd? Look for an alternative solution to setting locale at login?
    • Remove sysvinit and initscripts from 'base', add systemd and sysvcompat
  • Make sure timedated's managing of NTP works
    • Add files to ntpd, chrony, openntpd for /usr/lib/systemd/ntp-units.d