[GTALUG] How to run script at bootup in Debian
Lennart Sorensen
lsorense at csclub.uwaterloo.ca
Wed Jan 23 09:43:27 EST 2019
On Wed, Jan 23, 2019 at 12:24:53AM -0500, William Park via talk wrote:
> On Tue, Jan 22, 2019 at 03:09:59PM -0500, Howard Gibson wrote:
> > On Tue, 22 Jan 2019 19:46:24 +0000 (UTC)
> > William Park via talk <talk at gtalug.org> wrote:
> >
> > > Hi all,
> > > I need to run a custom script at the later stage of bootup in Debian
> > > 9.5 (board is BeagleBone Black). I seem to remember "rc.local"
> > > long ago, but it's gone in the latest Ubuntu and Debian. Online
> > > search says
> > > (1) simply create "/etc/rc.local", and systemd will automatically pick it up.
> > > (2) use crontab, "@reboot ..."
> > > Which is "proper" way in Debian world?
> > > --William
> >
> > William,
> >
> > On my Fedora 27 laptop, placing rc.local into /etc/rc.d worked.
> >
> > /etc/rc.d/rc.local
>
> That's where it is on Slackware, too. But, I'm working with Debian 9.5
> which comes with BeagleBone Black. I tried option (1), and it seems to
> work.
Yes Debian does have a systemd service by default called rc.local.service
which will execute /etc/rc.local if it exists and is executable of course.
Certainly using a file in /etc/cron.d with an @reboot time would work
well too.
--
Len Sorensen
More information about the talk
mailing list