Univention Bugzilla – Bug 33729
Add cleanup hook directories
Last modified: 2014-01-08 10:25:03 CET
While creating UCS appliances it became apparent that we need a way to execute hook scripts in the cleanup phase, before and after the appliance-only network interface is removed. The following hook directories will be added and scripts in them executed during the cleanup: /usr/lib/univention-system-setup/cleanup-pre.d /usr/lib/univention-system-setup/cleanup-post.d
* Add cleanup -pre and -post hookdirectories * Added a notifier and listener restart script to be executed after appliance setup cleanup. r46744 univention-system-setup 7.0.66-6.555.201312131458 2013-11-27-univention-system-setup.yaml
OK /var/log/univention/setup.log: === Running cleanup-pre scripts (2013-12-16 16:42:54) === Running 20_my === done (2013-12-16 16:42:54) === === Running cleanup-post scripts (2013-12-16 16:42:58) === Restarting univention-directory-notifier daemon: ... Restarting univention-directory-listener daemon... Running 10_notifier_listener_restart Running 20_my === done (2013-12-16 16:43:11) === -> more /tmp/log.log Mo 16. Dez 16:42:54 CET 2013 cleanup-pre.d /usr/lib/univention-system-setup/cleanup-pre.d/20_my Mo 16. Dez 16:43:11 CET 2013 cleanup-post.d /usr/lib/univention-system-setup/cleanup-post.d/20_my -> more /usr/lib/univention-system-setup/cleanup-post.d/20_my #!/bin/bash date >>/tmp/log.log echo "cleanup-post.d" >>/tmp/log.log echo $0 >>/tmp/log.log -> more /usr/lib/univention-system-setup/cleanup-pre.d/20_my #!/bin/bash date >>/tmp/log.log echo "cleanup-pre.d" >>/tmp/log.log echo $0 >>/tmp/log.log OK - YAML
REOPEN -> output during cleanup is in wrong order (first the script output is seen, then the name of the script that was just executed)
Added an additional logfile flush call r46784 univention-system-setup 7.0.66-7.556.201312170926 yaml updated: 2013-11-27-univention-system-setup.yaml
once again, OK
http://errata.univention.de/ucs/3.2/18.html