[systemd-devel] Boot Service on Select Motherboard Only

Colin Guthrie gmane at colin.guthr.ie
Tue Apr 16 01:55:46 PDT 2013


'Twas brillig, and systemdkiosk at yopmail.com at 15/04/13 23:03 did gyre
and gimble:
> Question: how to boot ntpd.service on one PC and not others from the
> same USB stick.
> 
> Network Time Service computes clock tweaks for a motherboard. The idea
> is to run it on just one motherboard brand/model, or maybe serial
> number. If the USB stick boots another PC, then ntpd is bypassed,
> because the recorded values on disk are irrelevant and wrong.
> 
> The issues may well have more to do with udev than systemd, but I'd
> appreciate guidance. It would be nice to use stock ntpd.service, but I
> don't know if systemd can manage, or how a custom service may look if
> not.

Looks like something you could detect with a udev rule somewhere (i.e.
matching on some hw identifier) which in turn spawns the systemd unit.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list