How to make a deb file which tells the system a reboot is required?

Solution 1:

If you do need a reboot after installation you will make a call to /usr/share/update-notifier/notify-reboot-required in the .postinst script for your package. This can easily be found be reading the .postinst script of any linux-image package.

However, I would be concerned about any custom PPA that requires a reboot after installation.

Other than kernel updates, there are few packages that require a reboot. There are important libraries that may required certain services to be restarted.

If your install script requires the service it installed to be restarted, it should perform the restart as part of the post installation procedure. This is normally the case for daemon processes.

Many packages don't require any restart at all.