eb10a76494542fb560efd09c16b40826fc37bc5fLennart PoetteringPorting systemd To New Distributions
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart PoetteringHOWTO:
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering You need to make the follow changes to adapt systemd to your
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering distribution:
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering 1) Find the right configure parameters for:
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-rootprefix=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-sysvinit-path=
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering --with-sysvrcnd-path=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-rc-local-script-path-start=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-rc-local-script-path-stop=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-kbd-loadkeys=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-kbd-setfont=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering --with-tty-gid=
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering --with-ntp-servers=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson 2) Try it out. Play around (as an ordinary user) with
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson '/usr/lib/systemd/systemd --test --system' for a test run
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson of systemd without booting. This will read the unit files and
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson print the initial transaction it would execute during boot-up.
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson This will also inform you about ordering loops and suchlike
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart PoetteringNTP POOL:
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering By default, timesyncd uses the Google NTP servers
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering time[1-4].google.com. They serve time that is not standards
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering compliant, and can be up to .5s off. Google does not
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering officially support these servers for the broader
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering audience. Distributions and vendors really should not ship
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering OSes or devices with these NTP servers configured. Instead,
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering please register your own vendor pool at ntp.org and make it
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering the built-in default by passing --with-ntp-servers= to
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering configure. Registering vendor pools is free:
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering http://www.pool.ntp.org/en/vendors.html
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering Again, if you ship your software or device with the default
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering NTP servers, then you will get served wrong time, and will
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering rely on services that might not be supported for long.
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering
eb10a76494542fb560efd09c16b40826fc37bc5fLennart PoetteringCONTRIBUTING UPSTREAM:
eb10a76494542fb560efd09c16b40826fc37bc5fLennart Poettering
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson We generally do no longer accept distribution-specific
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering patches to systemd upstream. If you have to make changes to
45548321d647b9747e8abc69b5cd8d237244c880Chris Atkinson systemd's source code to make it work on your distribution,
19aadacf92ad86967ffb678e37b2ff9e83cb9480Jan Engelhardt unless your code is generic enough to be generally useful, we
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering are unlikely to merge it. Please always consider adopting the
19aadacf92ad86967ffb678e37b2ff9e83cb9480Jan Engelhardt upstream defaults. If that is not possible, please maintain
19aadacf92ad86967ffb678e37b2ff9e83cb9480Jan Engelhardt the relevant patches downstream.
1486dbe1c6510376a900c8c99f8bc032c8fa9cdbLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering Thank you for understanding.