F17 Systemd modifying

"Jóhann B. Guðmundsson" johannbg at gmail.com
Fri Jan 20 13:13:05 UTC 2012


On 01/20/2012 01:08 PM, Frank Murphy wrote:
> Comments are mine.
>
> I have two ideas below.
>
> file:///lib/systemd/system/systemd-logind.service
>
> contains the following:
>
> [Unit]
> Description=Login Service
>
> How can I change this to:
> [Unit]
> After=yum-updateonboot.service
>
> as a file in /etc/systemd/system/
> so the  line above will be parsed,
> and then continue onto the original file.
>
> //**
> that way updates to
> systemd-units
> should not bork me. */
>
> //* there is no actual yum-updateonboot.service,
> but yum-updateonboot does exist in:
> /etc/init.d/yum-updateonboot & /erc/rc*.d/
> **//
>
> Or, try trick it, more likely myself.
>
> ln -s /etc/systemd/system/multi-user.target.wants/yum-updateonboot 
> /etc/init.d/yum-updateonboot
>
>

Migrate that yum-updateonboot legacy sysv init script then copy the 
systemd-logind.service to /etc/systemd/system directory and add that 
After=yum-updateonboot.service line to it ( or create a new empty 
systemd-logind.service with .include reference and that line )

JBG


More information about the test mailing list