Re: question about rc.local
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 instance, I want to start a process after system rebooting, where
> should I put the command?
SHOULD? It depend how cleanly you want to do things, and your personal
definition of cleanliness.
You CAN put it in rc.local.
You CAN also define a SysV init script.
You CAN also define a systemd service.
You CAN also set a @reboot crontab.
You CAN replace /sbin/init by a shell script that does what you want and
then continue booting.
This list is not exhaustive.
Regards,
--
Nicolas George
Reply to: