[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 <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |kasievers@novell.com |ovo.novell.com | -- 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#c1 --- Comment #1 from Kay Sievers <kasievers@novell.com> 2011-05-18 19:01:21 UTC --- It's not hooked-in at the moment. We need to add a service file for it, I guess. In general: /proc/sys/ belongs into /etc/sysctl.d/*.conf, /sys belongs into /etc/udev/rules.d/*.rules I think there is 'ethtool' support in the network config files, never tried any of the static network setup though. -- 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 Jiri Slaby <jslaby@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |696902 -- 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 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Basesystem Platform|x86-64 |All Version|Final |Factory AssignedTo|kasievers@novell.com |fcrozat@novell.com Product|openSUSE 11.4 |openSUSE 12.1 -- 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#c2 --- Comment #2 from Frederic Crozat <fcrozat@novell.com> 2011-07-05 11:54:12 UTC --- 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 (I didn't test the file ;) -- 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#c3 --- Comment #3 from Jiri Slaby <jslaby@novell.com> 2011-07-06 12:34:43 UTC --- (In reply to comment #2)
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 <fcrozat@novell.com> 2011-07-06 13:48:02 UTC --- Sorry about that. Correct content for /etc/systemd/system/boot-local.service: [Unit] Description=Local service to start at end of boot [Service] Requires=default.target After=default.target Type=oneshot ExecStart=/etc/init.d/boot.local [Install] WantedBy=multi-user.target -- 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#c5 --- Comment #5 from Jiri Slaby <jslaby@novell.com> 2011-07-06 13:59:37 UTC --- (In reply to comment #4)
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 <fcrozat@novell.com> 2011-07-06 15:25:39 UTC --- please add RemainAfterExit=true in the Service section it should fix the isolate problem. -- 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#c7 --- Comment #7 from Jiri Slaby <jslaby@novell.com> 2011-07-06 17:59:40 UTC --- (In reply to comment #6)
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 <fcrozat@novell.com> 2011-07-07 09:05:52 UTC --- Thanks for your feedback. I'm going to integrate a unit file slighly different, since systemd has a similar unit file, which is fedora specific. I'll adapt it for suse. And I'll do similar port for halt.local -- 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#c9 Frederic Crozat <fcrozat@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Frederic Crozat <fcrozat@novell.com> 2011-08-03 17:01:53 UTC --- fixed in Factory -- 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#c10 Sascha Peilicke <speilicke@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |speilicke@suse.com --- Comment #10 from Sascha Peilicke <speilicke@suse.com> 2012-10-29 13:17:25 UTC --- Are there any plans to do a maintenance update for 12.2? -- 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#c11 --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2012-10-29 13:26:11 UTC --- Hmm, this has been fixed before 12.2 was released. -- 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#c12 --- Comment #12 from Sascha Peilicke <speilicke@suse.com> 2012-10-29 14:46:52 UTC --- Indeed, /lib/systemd/system/local.service is there, /etc/init.d/boot.local has 744 perms and is executed. So it's a different issue, sorry for the noise. -- 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.
participants (1)
-
bugzilla_noreply@novell.com