Re: custom startup script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Am 10.07.2013 18:25, schrieb Jerome Yanga:
> On Wed, Jul 10, 2013 at 9:19 AM, Jerome Yanga <jerome.yanga@xxxxxxxxx <mailto:jerome.yanga@xxxxxxxxx>> wrote:
>     Hi all!
>     In the past, I would create custom startup scripts and create a link in the /etc/rc.d/rc5.d/ directory.
>     Is this still a good practice?  If not, please let me know where I should put my custom startup scripts.

bad practice these days, systemd-units are much more powerful
and for oneshot-scripts mostly simpler in the syntax as
the sysv-init stuff

systemctl --help
man systemctl

example below enabled with "systemctl enable network-bonding-bridge.service"

[root@rh:~]$ cat /etc/systemd/system/network-bonding-bridge.service
Description=Network Bonding Bridge

ExecStart=/usr/local/bin/ start
ExecStop=/usr/local/bin/ stop


Attachment: signature.asc
Description: OpenPGP digital signature

users mailing list
To unsubscribe or change subscription options:
Have a question? Ask away:

Photo 4 Less

[Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Find Someone Special]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

Powered by Linux