diff --git a/shutils/metadata.sh b/shutils/metadata.sh
index 6c8b354ce03..984b0e3b30f 100644
--- a/shutils/metadata.sh
+++ b/shutils/metadata.sh
@@ -274,6 +274,15 @@ xbps_write_metadata_pkg_real()
long_desc
$long_desc
_EOF
+ #
+ # If package sets $openrc_services, add the openrc-service
+ # trigger and OpenRC run dependency.
+ #
+ if [ -n "$openrc_services" ]; then
+ triggers="$triggers openrc-service"
+ Add_dependency run OpenRC
+ fi
+
# Dependencies
if [ -n "$run_depends" ]; then
echo "run_depends" >> $TMPFPROPS
diff --git a/templates/cronie/template b/templates/cronie/template
index db01e3249ce..c582298f5e0 100644
--- a/templates/cronie/template
+++ b/templates/cronie/template
@@ -17,12 +17,10 @@ long_desc="
conf_files="/etc/crontab"
openrc_services="crond default"
-triggers="openrc-service"
Add_dependency full glibc
Add_dependency full pam
Add_dependency full run-parts
-Add_dependency run OpenRC
post_install()
{
diff --git a/templates/dbus/template b/templates/dbus/template
index 16cd303257d..d6ce7fc8d60 100644
--- a/templates/dbus/template
+++ b/templates/dbus/template
@@ -25,13 +25,11 @@ keep_dirs="/etc/dbus-1"
conf_files="/etc/dbus-1/session.conf /etc/dbus-1/system.conf"
subpackages="devel libs"
openrc_services="dbus default"
-triggers="openrc-service"
Add_dependency full glibc
Add_dependency full expat
Add_dependency run dbus-libs
Add_dependency build pkg-config
-Add_dependency run OpenRC
post_install()
{
diff --git a/templates/dhcpcd/template b/templates/dhcpcd/template
index 36c7fcd833c..5462b3a7121 100644
--- a/templates/dhcpcd/template
+++ b/templates/dhcpcd/template
@@ -15,11 +15,9 @@ long_desc="
configuration."
Add_dependency run glibc
-Add_dependency run OpenRC
conf_files="/etc/dhcpcd.conf"
openrc_services="dhcpcd default"
-triggers="openrc-service"
pre_configure()
{
diff --git a/templates/hal/template b/templates/hal/template
index 3e2aa3dee53..4752754f379 100644
--- a/templates/hal/template
+++ b/templates/hal/template
@@ -17,7 +17,6 @@ long_desc="
conf_files="/etc/dbus-1/system.d/hal.conf
/etc/hal/fdi/policy/10-keymap.fdi"
openrc_services="hal default"
-triggers="openrc-service"
Add_dependency full glibc
Add_dependency full udev
@@ -36,7 +35,6 @@ Add_dependency full dmidecode
Add_dependency build pkg-config
Add_dependency build libsmbios
Add_dependency run libsmbios-utils
-Add_dependency run OpenRC
Add_dependency full pm-utils
Add_dependency full libblkid
diff --git a/templates/metalog/template b/templates/metalog/template
index 33ef35e4f89..97337b6d339 100644
--- a/templates/metalog/template
+++ b/templates/metalog/template
@@ -15,13 +15,11 @@ long_desc="
conf_files="/etc/metalog.conf"
openrc_services="metalog default"
-triggers="openrc-service"
Add_dependency full glibc
Add_dependency full pcre
Add_dependency full bzip2
Add_dependency build lzma-utils
-Add_dependency run OpenRC
post_install()
{
diff --git a/templates/nfs-utils/template b/templates/nfs-utils/template
index 54443b4f315..4a060c82599 100644
--- a/templates/nfs-utils/template
+++ b/templates/nfs-utils/template
@@ -15,8 +15,6 @@ long_desc="
traditional Linux NFS server used by most users."
openrc_services="mountd default nfsd default nfslock default"
-triggers="openrc-service"
-
conf_files="/etc/exports"
Add_dependency full glibc
@@ -24,7 +22,6 @@ Add_dependency full portmap
Add_dependency full libblkid
Add_dependency build tcp_wrappers
Add_dependency run tcp_wrappers-libs
-Add_dependency run OpenRC
post_install()
{
diff --git a/templates/ntp/template b/templates/ntp/template
index 2cbea8b8c1c..e656a8dcebf 100644
--- a/templates/ntp/template
+++ b/templates/ntp/template
@@ -20,13 +20,11 @@ long_desc="
subpackages="perl"
conf_files="/etc/ntp.conf"
openrc_services="ntpd default"
-triggers="openrc-service"
Add_dependency full glibc
Add_dependency full openssl
Add_dependency full libcap
Add_dependency run ncurses-libs
-Add_dependency run OpenRC
post_install()
{
diff --git a/templates/portmap/template b/templates/portmap/template
index 1fcecea6826..193495eeaca 100644
--- a/templates/portmap/template
+++ b/templates/portmap/template
@@ -15,12 +15,10 @@ long_desc="
and NIS, and assorted other systems."
openrc_services="portmap default"
-triggers="openrc-service"
Add_dependency full glibc
Add_dependency build tcp_wrappers
Add_dependency run tcp_wrappers-libs
-Add_dependency run OpenRC
post_install()
{
diff --git a/templates/udev/template b/templates/udev/template
index 84883afb3cc..a23cca1c00c 100644
--- a/templates/udev/template
+++ b/templates/udev/template
@@ -14,11 +14,8 @@ long_desc="
/sbin/hotplug. It requires a 2.5/2.6 kernel to run properly."
openrc_services="udev sysinit"
-triggers="openrc-service"
-
Add_dependency full glibc
Add_dependency full procps
-Add_dependency full OpenRC
post_install()
{