diff options
-rwxr-xr-x | dh_smf | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -192,20 +192,23 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) { my @daemons_restart = grep { $_->{'upgrade'} eq 'restart' } @daemons; my @daemons_refresh = grep { $_->{'upgrade'} eq 'refresh' } @daemons; if (@daemons_stop) { + my @svcs = map { $_->{'name'} } @daemons_stop; autoscript( $package, 'prerm', 'prerm-smf-stop', - "s|#DAEMONS#|@daemons_stop|" ); + "s|#SERVICES#|@svcs|" ); autoscript( $package, 'postinst', 'postinst-smf-start', - "s|#DAEMONS#|@daemons_stop|" ); + "s|#SERVICES#|@svcs|" ); } if (@daemons_restart) { + my @svcs = map { $_->{'name'} } @daemons_restart; autoscript( $package, 'postinst', 'postinst-smf-refresh', - "s|#DAEMONS#|@daemons_restart|" ); + "s|#SERVICES#|@svcs|" ); autoscript( $package, 'postinst', 'postinst-smf-restart', - "s|#DAEMONS#|@daemons_restart|" ); + "s|#SERVICES#|@svcs|" ); } if (@daemons_refresh) { + my @svcs = map { $_->{'name'} } @daemons_refresh; autoscript( $package, 'postinst', 'postinst-smf-refresh', - "s|#DAEMONS#|@daemons_refresh|" ); + "s|#SERVICES#|@svcs|" ); } } } |