[Bug 693974] New: systemd: /etc/init.d/boot.local not executed
https://bugzilla.novell.com/show_bug.cgi?id=693974 https://bugzilla.novell.com/show_bug.cgi?id=693974#c0 Summary: systemd: /etc/init.d/boot.local not executed Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jslaby@novell.com QAContact: qa@suse.de CC: werner@novell.com, kasievers@novell.com Found By: --- Blocker: --- Maybe there is another way how to initialize something once at boot. But it's not definitely /etc/init.d/boot.local which worked with sysvinit. And I cannot find the way how to achieve that with systemd. I have this in the script: ethtool -s eth0 wol d echo 3000 > /proc/sys/vm/dirty_writeback_centisecs echo noop > /sys/block/sda/queue/scheduler echo 5 > /proc/sys/vm/laptop_mode But neither of that is set. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c1
--- Comment #1 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c2
--- Comment #2 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c3
--- Comment #3 from Jiri Slaby
Jiri, could you create /etc/systemd/system/boot-local.service with the following content : [Unit] Description=Local service to start at end of boot Requires=default.target After=default.target Type=oneshot ExecStart=/etc/init.d/boot.local
and run : systemctl daemon-reload systemctl enable boot-local.service
It yields: Unit files contain no applicable installation information. Ignoring.
(I didn't test the file ;)
Well, you apparently should have. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c4
--- Comment #4 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c5
--- Comment #5 from Jiri Slaby
Sorry about that.
Correct content for /etc/systemd/system/boot-local.service:
I can enable the service, but every "systemctl isolate multi-user.target" invocation runs the boot.local script. However it should be run exactly once at boot time. Like with sysvinit. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c6
--- Comment #6 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c7
--- Comment #7 from Jiri Slaby
please add RemainAfterExit=true
in the Service section
it should fix the isolate problem.
Yeah, it looks like it does what is expected from it now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c8
--- Comment #8 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c9
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c10
Sascha Peilicke
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c11
--- Comment #11 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=693974
https://bugzilla.novell.com/show_bug.cgi?id=693974#c12
--- Comment #12 from Sascha Peilicke
participants (1)
-
bugzilla_noreply@novell.com