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

Re: question about rc.local



What’s the right way to run rsync —daemon then? Thanks

On 09/03/2023 21:02, Greg Wooledge wrote:
On Thu, Mar 09, 2023 at 01:32:54PM +0100, Nicolas George wrote:
Corey Hickman (12023-03-09):
> does debian 11 still use /etc/rc.local for startups after rebooting?

No, Debian does not use it. It lets you use it if you so want.

For the record, if you *do* want to use it, you'll have to create it
yourself. Make sure you give it a proper shebang (#!/bin/sh) and +x bits,
or it won't work.

Older versions of Debian created a mostly empty rc.local for you to
use as a starting point, but the most recent versions (not sure how many)
have stopped doing that.

If the process you're trying to start is a long-running service of some
kind, which you may want to stop or restart, or which you may even want
to restart itself automatically if it dies, then you should definitely
look into creating a systemd unit instead of an rc.local hack.


Reply to: