Bug#819314: procps: [sysctl] Missing dependency when used with systemd

Martin Mares mj at ucw.cz
Thu Mar 31 15:45:40 BST 2016


Hello!

> Are you sure?
> networking.service has
> > After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service
> 
> This makes sure that networking.service, which deals with type auto
> interfaces, is started after systemd-sysctl.service.

On my system (Wheezy recently upgraded to Jessie):

| ● networking.service - LSB: Raise network interfaces.
|    Loaded: loaded (/etc/init.d/networking)
|   Drop-In: /run/systemd/generator/networking.service.d
|            └─50-insserv.conf-$network.conf
|         /lib/systemd/system/networking.service.d
|            └─network-pre.conf
|    Active: active (exited) since Sun 2016-03-20 21:56:51 CET; 1 weeks 3 days ago

/run/systemd/generator/networking.service.d/50-insserv.conf-$network.conf
contains only:

| # Automatically generated by systemd-insserv-generator
| 
| [Unit]
| Wants=network.target
| Before=network.target

/lib/systemd/system/networking.service.d/network-pre.conf contains only:

| [Unit]
| After=network-pre.target

No trace of systemd-sysctl.service anywhere.

> And for hotplugged devices
> 
> /lib/udev/rules.d/99-systemd.rules contains
> > 99-systemd.rules:# Apply sysctl variables to network devices (and only to those) as they appear.
> > 99-systemd.rules:ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", RUN+="/lib/systemd/systemd-sysctl --prefix=/net/ipv4/conf/$name --prefix=/net/ipv4/neigh/$name --prefix=/net/ipv6/conf/$name --prefix=/net/ipv6/neigh/$name"

This works for per-interface options, but not for /net/ipv6/conf/default.
(However, I probably should abandon using conf/default anyway, since some
kernel modules are loaded before sysctl is set.)

				Martin




More information about the Pkg-systemd-maintainers mailing list