|
Bugzilla – Full Text Bug Listing |
| Summary: | systemd: /etc/init.d/boot.local not executed | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 12.1 | Reporter: | Jiri Slaby <jslaby> |
| Component: | Basesystem | Assignee: | Frederic Crozat <fcrozat> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | werner |
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 696902 | ||
|
Description
Jiri Slaby
2011-05-16 09:40:34 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. 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 ;) (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. 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 (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. please add RemainAfterExit=true in the Service section it should fix the isolate problem. (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. 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 fixed in Factory Are there any plans to do a maintenance update for 12.2? Hmm, this has been fixed before 12.2 was released. 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. |