From 0cdad3fd7d29ff46285fcbcaa973f3f483b67392 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 4 May 2009 23:29:11 +0200 Subject: [PATCH] cronie: use $openrc_services and its trigger. --HG-- extra : convert_revision : 0584571610555327007a3ff55c104be929972e1d --- templates/cronie/INSTALL | 20 -------------------- templates/cronie/REMOVE | 20 -------------------- templates/cronie/template | 3 +++ 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 templates/cronie/INSTALL delete mode 100644 templates/cronie/REMOVE diff --git a/templates/cronie/INSTALL b/templates/cronie/INSTALL deleted file mode 100644 index 1466d7fdf46..00000000000 --- a/templates/cronie/INSTALL +++ /dev/null @@ -1,20 +0,0 @@ -# -# This script registers the crond service into the -# 'default' runlevel, as required by OpenRC. -# - -case "${ACTION}" in -pre) - ;; -post) - [ ! -x sbin/rc-update ] && exit 0 - [ ! -x sbin/rc-service ] && exit 0 - - if sbin/rc-service -e crond; then - echo "Registering ${PKGNAME} OpenRC service..." - sbin/rc-update add crond default - [ $? -ne 0 ] && exit $? - sbin/rc-update -u - fi - ;; -esac diff --git a/templates/cronie/REMOVE b/templates/cronie/REMOVE deleted file mode 100644 index d974cb3f2e0..00000000000 --- a/templates/cronie/REMOVE +++ /dev/null @@ -1,20 +0,0 @@ -# -# This script unregisters the crond service from the -# 'default' runlevel, as required by OpenRC. -# - -case "${ACTION}" in -pre) - [ ! -x sbin/rc-update ] && exit 0 - [ ! -x sbin/rc-service ] && exit 0 - - if sbin/rc-service -e crond; then - echo "Unregistering ${PKGNAME} OpenRC service..." - sbin/rc-update del crond default - [ $? -ne 0 ] && exit $? - sbin/rc-update -u - fi - ;; -post) - ;; -esac diff --git a/templates/cronie/template b/templates/cronie/template index 542737e1940..db01e3249ce 100644 --- a/templates/cronie/template +++ b/templates/cronie/template @@ -16,10 +16,13 @@ long_desc=" SELinux." 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() {