On Fri, Sep 22, 2006 at 09:33:40AM -0500, Andrea Righi wrote:
> Author: arighi
> Date: 2006-09-22 09:33:39 -0500 (Fri, 22 Sep 2006)
> New Revision: 3751
> 
> Modified:
>    trunk/sbin/si_cpimage
>    trunk/sbin/si_mvimage
>    trunk/sbin/si_rmimage
> Log:
> - fix: move the override associated to the image with si_mvimage
> - fix: restart systemimager-server-rsyncd after a moving, removing or
>   copying an image to refresh the view of si_lsimage
> 
> 
> Modified: trunk/sbin/si_cpimage
> ===================================================================
> --- trunk/sbin/si_cpimage     2006-09-21 19:40:11 UTC (rev 3750)
> +++ trunk/sbin/si_cpimage     2006-09-22 14:33:39 UTC (rev 3751)
> @@ -326,4 +326,7 @@
>  move($tmp_file, $file) or die "FATAL: Can't move $tmp_file to $file: $!";
>  ### END Change entries in master autoinstall script ###
>  
> +# Restart systemimager-server-rsyncd
> +system "/etc/init.d/systemimager-server-rsyncd restart";
> +

fwiw, this will be unexpected if we're in a runlevel where
systemimager-server-rsync isn't supposed to run but is now suddenly
activated.

there's probably an lsb interface to reload a service iff its running,
i don't know if off the top of my head though.

-- 
dann frazier


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to