Restart services after update

    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Restart services after update

      Hi everyone,

      From the "debian-goodies" regular Debian package, there's a "checkrestart" command which is able to show the processes still using the old libraries even after an upgrade.
      When using "stock" update manager from the Web-UI of OMV, everything seems to be fine BUT when you ssh a "sudo checkrestart" on your box, it appears that A LOT of services are not really updated...

      Source Code

      1. sudo checkrestart
      2. Found 32 processes using old versions of upgraded files
      3. (18 distinct programs)
      4. (14 distinct packages)
      5. Of these, 13 seem to contain init scripts which can be used to restart them:
      6. The following packages seem to have init scripts that could be used
      7. to restart them:
      8. plexmediaserver:
      9. 4303 /usr/lib/plexmediaserver/Plex DLNA Server
      10. rrdcached:
      11. 2387 /usr/bin/rrdcached
      12. transmission-daemon:
      13. 3341 /usr/bin/transmission-daemon
      14. virtualbox-4.3:
      15. 3430 /usr/lib/virtualbox/VBoxSVC
      16. 3422 /usr/lib/virtualbox/VBoxXPCOMIPCD
      17. 3454 /usr/lib/virtualbox/vboxwebsrv
      18. minidlna:
      19. 3768 /usr/bin/minidlnad
      20. collectd-core:
      21. 3125 /usr/sbin/collectd
      22. nginx-full:
      23. 3091 /usr/sbin/nginx
      24. 3096 /usr/sbin/nginx
      25. 3095 /usr/sbin/nginx
      26. 3098 /usr/sbin/nginx
      27. 3097 /usr/sbin/nginx
      28. samba:
      29. 3249 /usr/sbin/nmbd
      30. 3252 /usr/sbin/smbd
      31. 3258 /usr/sbin/smbd
      32. clamav-daemon:
      33. 3423 /usr/sbin/clamd
      34. clamav-freshclam:
      35. 3631 /usr/bin/freshclam
      36. cups:
      37. 3055 /usr/sbin/cupsd
      38. php5-fpm:
      39. 2396 /usr/sbin/php5-fpm
      40. 2397 /usr/sbin/php5-fpm
      41. 2394 /usr/sbin/php5-fpm
      42. 2395 /usr/sbin/php5-fpm
      43. 2392 /usr/sbin/php5-fpm
      44. 2393 /usr/sbin/php5-fpm
      45. 2398 /usr/sbin/php5-fpm
      46. 733 /usr/sbin/php5-fpm
      47. 739 /usr/sbin/php5-fpm
      48. forked-daapd:
      49. 4028 /usr/sbin/forked-daapd
      50. These are the init scripts:
      51. service plexmediaserver restart
      52. service rrdcached restart
      53. service transmission-daemon restart
      54. service vboxdrv restart
      55. service vboxweb-service restart
      56. service vboxautostart-service restart
      57. service vboxballoonctrl-service restart
      58. service minidlna restart
      59. service collectd restart
      60. service nginx restart
      61. service samba restart
      62. service clamav-daemon restart
      63. service clamav-freshclam restart
      64. service cups restart
      65. service php5-fpm restart
      66. service forked-daapd restart
      67. These processes do not seem to have an associated init script to restart them:
      68. python2.7-minimal:
      69. 2830 /usr/bin/python2.7
      70. 2863 /usr/bin/python2.7
      Display All

      Isn't it possible to automate the services restart to deal with it?

      BTW: Thank you for this wonderful piece of a NAS solution!
    • I don't know what you updated to have that many services that need to be restarted but I think you would be better off to reboot. This comment Administrators should not, however, rely on its output completely (see BUGS below). makes me think using this program is a little over-rated.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11 plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Thats normal behaviour. In times we got shellshock, heartbleed, etc. it is suggested to reboot your system after the security update has been applied, so that all programs are forced to use the new updated libraries.

      For systems that are citrical in use, you may go through such lists that show which program still uses old version of libraries to restart them without rebooting the whole system. But come on, thats not the target audience of OpenMediaVault, isn't it?

      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.