summaryrefslogtreecommitdiff
path: root/dh_smf
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-15 15:27:25 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-15 15:27:25 +0400
commit66cba99a4134578d5f4b7c934326a570e4a4ea1a (patch)
treecc570c0467519e17faa592f45a8c5e89b34d9660 /dh_smf
parent8808c156753c7e1aad2becb46f7239e2db310800 (diff)
downloaddh-smf-66cba99a4134578d5f4b7c934326a570e4a4ea1a.tar.gz
Ignore milestones and dummy services
Diffstat (limited to 'dh_smf')
-rwxr-xr-xdh_smf7
1 files changed, 7 insertions, 0 deletions
diff --git a/dh_smf b/dh_smf
index ad69807..01fe092 100755
--- a/dh_smf
+++ b/dh_smf
@@ -182,6 +182,13 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) {
}
}
}
+
+# Ignore milestones and dummy services. A milestone is usually a dummy service as well
+ @services = grep {
+ $_->{'name'} !~ /milestone\//
+ && $_->{'exec_method'}->{'start'}->{'exec'} ne ':true'
+ } @services;
+
print Dumper(@services); # debug
if ( !$dh{NOSCRIPTS} ) {