How to display reboot required user notification after installing a custom package in linux?
        Posted  
        
            by 
                user284588
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by user284588
        
        
        
        Published on 2014-05-23T15:17:31Z
        Indexed on 
            2014/05/28
            15:58 UTC
        
        
        Read the original article
        Hit count: 550
        
After installing a custom package I should force a reboot of the system.
I looked at couple of solutions to this
use
notify-sendto display user notification followed by a reboot command, which did work as planned. But the user notification is only shown when I install the package from command line and not when I installed through Software Center.I came across some posts where they suggested adding the following to the postinst script
[ -x /usr/share/update-notifier/notify-reboot-required ] && \ /usr/share/update-notifier/notify-reboot-required || trueTried including the above in the postinst script but all it does is updating the two files
/var/run/reboot-required.pkgsand /var/run/reboot-requiredwith restart information.It neither displayed user-notification nor rebooted the system after package is installed.
Is there a way to display reboot required user notification in Ubuntu/Fedora/Open SUSE ?
© Ask Ubuntu or respective owner