Changes

Jump to: navigation, search

Systemd fedora

711 bytes added, 14:16, 14 May 2013
Add systemd service to replace rc.local
== For System Administrators ==
Blog posts by the systemd developer Lennart Poettering for system administrators:
* [http://0pointer.de/blog/projects/systemd-for-admins-1.html systemd: Verifying Bootup]
* [http://0pointer.de/blog/projects/systemd-for-admins-2.html systemd: Which Service Owns Which Processes?]
* [http://0pointer.de/blog/projects/systemd-for-admins-3.html systemd: part 3How Do I Convert A SysV Init Script Into A systemd Service File?]
* [http://0pointer.de/blog/projects/systemd-for-admins-4.html systemd: Killing Services]
* [http://0pointer.de/blog/projects/systemdthree-forlevels-adminsof-5.html off systemd: part 53 levels of off]* [http://0pointer.de/blog/projects/systemdchanging-for-admins-6roots.html systemd: part 6Changing Roots]* [http://0pointer.de/blog/projects/systemd-forblame-admins-7game.html systemd: part 7The blame game]* [http://0pointer.de/blog/projects/systemdthe-fornew-adminsconfiguration-8.html files systemd: part 8The New Configuration Files]* [http://0pointer.de/blog/projects/systemd-foron-adminsetc-9sysinit.html systemd: part 9]* [http:On /etc/0pointer.de/blogsysconfig and /projectsetc/systemd-for-admins-10.html systemd: part 10default]
=System Administration=
== Add systemd service to replace rc.local ==
Here is the suggestion:
* Reference [https://bbs.archlinux.org/viewtopic.php?id=148170 systemd service for replacing rc.local]
 
Add the following to the file /usr/lib/systemd/system/rc-local.service:
 
<pre>
[Unit]
Description=/etc/rc.local Compatibility
After=network.target
[Service]
Type=oneshot
ExecStart=-/etc/rc.local
TimeoutSec=0
StandardInput=tty
RemainAfterExit=yes
 
[Install]
WantedBy=multi-user.target
 
</pre>
 
Call whatever script you want to run in /etc/rc.local and use systemctl to enable rc-local.service at boot time.
[[Category:OPS335]][[Category:OPS335 Labs]]
1,760
edits

Navigation menu