Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2016aug30 OS: RedHat/Fedora/CentOS Q. How can I run a command at boot / startup ? A. As root, put the commands you want to run in:/etc/rc.d/rc.localeg:#!/bin/sh echo system started | mail rootAnd make it executable:chmod a+x rc.localThis is the way it worked before systemd and it continues to work this way with systemd (There's an rc-local.service but you don't need to mess with it).
Add a commentSign in to add a comment