For example, this is a question that was asked 10 years ago: How to run scripts on start up?
It's the top result for "startup script ubuntu" and many other such queries. Most of the top answers are outdated, but there are a couple of good answers in the thread.
The idea of AskUbuntu is to serve as a repository of questions and answers than to serve the person who's asking a question.
- Should we edit the question (without changing much, to not lose SERP) and the top answer? Possibly convert it to a CW?
- Should we remove the Accepted badge from this answer? New users tend to get confused as to what that tick means - they might think that's the recommended way to do it.
- Should we edit the other answers to mention that they're outdated? Or drop a comment under it?
I know there isn't a one-size-fits-all approach to this problem, but I believe doing this at least for the very popular questions could be very useful for the site and its visitors.
crontab
@reboot
method, the/etc/rc.local
method (second and third top answers after the accepted one) both work fine on any release of Ubuntu.