diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2021-12-03 17:41:18 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-12-05 22:45:18 +0100 |
commit | bc99d30840a1f0530b16eba3fa2c6bfd1e0059b1 (patch) | |
tree | 444b9459edcc5e22894343363b3da09f8bb0d8ad /sys-process/fcron | |
parent | kde-apps/kalarm: remove unused patch(es) (diff) | |
download | gentoo-bc99d30840a1f0530b16eba3fa2c6bfd1e0059b1.tar.gz gentoo-bc99d30840a1f0530b16eba3fa2c6bfd1e0059b1.tar.bz2 gentoo-bc99d30840a1f0530b16eba3fa2c6bfd1e0059b1.zip |
sys-process/fcron: remove unused file
Closes: https://github.com/gentoo/gentoo/pull/23170
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-process/fcron')
-rw-r--r-- | sys-process/fcron/files/fcron.init.4 | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/sys-process/fcron/files/fcron.init.4 b/sys-process/fcron/files/fcron.init.4 deleted file mode 100644 index e253e5bffcfe..000000000000 --- a/sys-process/fcron/files/fcron.init.4 +++ /dev/null @@ -1,98 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -FCRON_INSTANCE="${SVCNAME##*.}" - -if [ -n "${FCRON_INSTANCE}" ] && [ "${SVCNAME}" != "fcron" ]; then - FCRON_CONFIGFILE="/etc/fcron/fcron.${FCRON_INSTANCE}.conf" -else - FCRON_CONFIGFILE="/etc/fcron/fcron.conf" -fi - -getconfig() { - local key="$1" - local value_default="$2" - local value= - - if service_started; then - value="$(service_get_value "${key}")" - fi - - if [ -z "${value}" ] && [ -r "${FCRON_CONFIGFILE}" ]; then - value="$(sed -n -e 's:^'"${key}"'[ \t]*=[ \t]*::p' "${FCRON_CONFIGFILE}")" - fi - - if [ -z "${value}" ]; then - # Value not explicitly set in the configfile or configfile does not exist - # or is not readable - echo "${value_default}" - else - echo "${value}" - fi - - return 0 -} - -depend() { - config "${FCRON_CONFIGFILE}" - - use clock logger - need hostname - - # provide the cron service if we are the main instance - [ "${SVCNAME}" = "fcron" ] && provide cron -} - -command="/usr/libexec/fcron" -command_args="-c \"${FCRON_CONFIGFILE}\"" -start_stop_daemon_args=${FCRON_SSDARGS:-"--wait 1000"} -pidfile="$(getconfig pidfile /run/fcron.pid)" -fcrontabs="$(getconfig fcrontabs /var/spool/fcron)" -fifofile="$(getconfig fifofile /run/fcron.fifo)" -required_files="${FCRON_CONFIGFILE}" - -extra_started_commands="reload" - -reload() { - start-stop-daemon --signal HUP --pidfile "${pidfile}" -} - -start_pre() { - if [ "${SVCNAME}" != "fcron" ]; then - local _has_invalid_instance_cfg=0 - - if [ "${pidfile}" = "/run/fcron.pid" ]; then - eerror "You cannot use the same pidfile like the default instance!" - eerror "Please adjust your 'pidfile' setting in '${FCRON_CONFIGFILE}'." - _has_invalid_instance_cfg=1 - fi - - if [ "${fcrontabs}" = "/var/spool/fcron" ]; then - eerror "You cannot use the same fcrontabs location like the default instance!" - eerror "Please adjust your 'fcrontabs' setting in '${FCRON_CONFIGFILE}'." - _has_invalid_instance_cfg=1 - fi - - if [ "${fifofile}" = "/run/fcron.fifo" ]; then - eerror "You cannot use the same fifo file like the default instance!" - eerror "Please adjust your 'fifofile' setting in '${FCRON_CONFIGFILE}'." - _has_invalid_instance_cfg=1 - fi - - [ ${_has_invalid_instance_cfg} -ne 0 ] && return 1 - fi - - checkpath --file "${FCRON_CONFIGFILE}" --owner root:fcron --mode 0640 - - if [ ! -d "${fcrontabs}" ]; then - ebegin "Creating missing spooldir '${fcrontabs}'" - ${command} --newspooldir "${fcrontabs}" - eend $? - fi -} - -start_post() { - service_set_value fcrontabs "${fcrontabs}" - service_set_value fifofile "${fifofile}" -} |