I made some changes to sysctl.conf but now need to run sysctl -p on each boot. I can always create an init script to have it run automatically on boot, but I was wondering if there was an Ubuntu / Debian way of doing it.
There is a better and more ellegant way:
create your configuration file on /etc/sysctl.d/ directory.
For example, if you changing kernel parameters due to database requirements, create a file:
and add your own parameters inside it. To execute it:
service procps restart
Just to note:
procps is a system file and it should NEVER be edited.
/etc/sysctl.conf should not be edited either because it can be changed on a system/kernel upgrade and if it's differente from expected, upgrade will be halted asking if newer version can replace current one.