Skip to contentSkip to conversation

How to run stysctl at system startup?

Buildroot Carlos Santos 2 participants 2 messages Mar 30, 2017

lore
Share & tools
lore
#0 lore raw

Hello,

The procps-ng package does not install a script at /etc/init.d to run

    sysctl --system

Is this purposeful? I can circumvent the problem by means of an init scrip in my $(BR2_ROOTFS_OVERLAY)/etc/init.d/ but it would be nice to have that script provided by default.

Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D
Rua Am?rica, 1000 - Eldorado do Sul, RS, Brasil - 92990-000
casantos at datacom.ind.br          +55 51 3933.3000 ext. 3627
http://www.datacom.ind.br
#1 lore raw

Hello,

Quoted 7 lines · Carlos Santos

The procps-ng package does not install a script at /etc/init.d to run

    sysctl --system

Is this purposeful? I can circumvent the problem by means of an init scrip in my $(BR2_ROOTFS_OVERLAY)/etc/init.d/ but it would be nice to have that script provided by default.

FWIW, Busybox also provides a sysctl utility, which is enabled in our default Busybox configuration.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com