Ticket #16177: blfs-bootscripts_add-elogind.patch

File blfs-bootscripts_add-elogind.patch, 3.6 KB (added by Joe Locash, 5 years ago)
  • blfs-bootscripts-20210826

    diff -Nuarp blfs-bootscripts-20210826.orig/blfs/init.d/elogind blfs-bootscripts-20210826/blfs/init.d/elogind
    old new  
     1#!/bin/sh
     2########################################################################
     3# Begin elogind
     4#
     5# Description : Start elogind daemon
     6#
     7# Author      : Joe Locash - jlocash@gmail.com
     8#
     9# Version     : BLFS 11.0
     10#
     11########################################################################
     12
     13### BEGIN INIT INFO
     14# Provides:            elogind
     15# Required-Start:      dbus
     16# Should-Start:
     17# Required-Stop:       dbus
     18# Should-Stop:
     19# Default-Start:       2 3 4 5
     20# Default-Stop:        0 1 6
     21# Short-Description:   Starts elogind.
     22# Description:         Starts elogind.
     23# X-LFS-Provided-By:   BLFS
     24### END INIT INFO
     25
     26. /lib/lsb/init-functions
     27
     28#$LastChangedBy$
     29#$Date$
     30
     31pidfile=/run/elogind.pid
     32
     33case "$1" in
     34   start)
     35      log_info_msg "Starting Elogind..."
     36      /usr/lib/elogind/elogind --daemon
     37      evaluate_retval
     38      ;;
     39   stop)
     40      log_info_msg "Stopping Elogind..."
     41      killproc /usr/lib/elogind/elogind
     42      evaluate_retval
     43      ;;
     44   reload)
     45      log_info_msg "Reloading Elogind..."
     46      killproc /usr/lib/elogind/elogind -HUP
     47      evaluate_retval
     48      ;;
     49   restart)
     50      log_info_msg "Restarting Elogind..."
     51      $0 stop
     52      sleep .5
     53      $0 start
     54      ;;
     55   status)
     56      statusproc /usr/lib/elogind/elogind
     57      ;;
     58   *)
     59      echo "Usage: $0 {start|stop|reload|restart|status}"
     60      exit 1
     61      ;;
     62esac
     63
     64# End /etc/init.d/elogind
  • blfs-bootscripts-20210826

    diff -Nuarp blfs-bootscripts-20210826.orig/Makefile blfs-bootscripts-20210826/Makefile
    old new install-dhcpd: create-dirs  
    201201        ln -sf  ../init.d/dhcpd ${EXTDIR}/rc.d/rc5.d/S30dhcpd
    202202        ln -sf  ../init.d/dhcpd ${EXTDIR}/rc.d/rc6.d/K30dhcpd
    203203
     204install-elogind: create-dirs
     205        install -m ${MODE} blfs/init.d/elogind       ${EXTDIR}/rc.d/init.d/
     206        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc0.d/K30elogind
     207        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc1.d/K30elogind
     208        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc2.d/S30elogind
     209        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc3.d/S30elogind
     210        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc4.d/S30elogind
     211        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc5.d/S30elogind
     212        ln -sf  ../init.d/elogind ${EXTDIR}/rc.d/rc6.d/K30elogind
     213
    204214install-exim: create-dirs
    205215        install -m ${MODE} blfs/init.d/exim       ${EXTDIR}/rc.d/init.d/
    206216        ln -sf  ../init.d/exim ${EXTDIR}/rc.d/rc0.d/K25exim
    … … uninstall-dovecot:  
    739749        rm -f ${EXTDIR}/rc.d/rc5.d/S27dovecot
    740750        rm -f ${EXTDIR}/rc.d/rc6.d/K78dovecot
    741751
     752uninstall-elogind:
     753        rm -f ${EXTDIR}/rc.d/init.d/elogind
     754        rm -f ${EXTDIR}/rc.d/rc0.d/K30elogind
     755        rm -f ${EXTDIR}/rc.d/rc1.d/K30elogind
     756        rm -f ${EXTDIR}/rc.d/rc2.d/S30elogind
     757        rm -f ${EXTDIR}/rc.d/rc3.d/S30elogind
     758        rm -f ${EXTDIR}/rc.d/rc4.d/S30elogind
     759        rm -f ${EXTDIR}/rc.d/rc5.d/S30elogind
     760        rm -f ${EXTDIR}/rc.d/rc6.d/K30elogind
     761
    742762uninstall-exim:
    743763        rm -f ${EXTDIR}/rc.d/init.d/exim
    744764        rm -f ${EXTDIR}/rc.d/rc0.d/K25exim
    … … uninstall-xinetd:  
    11191139        install-wicd \
    11201140        install-dhcpd \
    11211141        install-dovecot \
     1142        install-elogind \
    11221143        install-exim \
    11231144        install-fcron \
    11241145        install-firewalld \
    … … uninstall-xinetd:  
    11681189        uninstall-wicd \
    11691190        uninstall-dhcpd \
    11701191        uninstall-dovecot \
     1192        uninstall-elogind \
    11711193        uninstall-exim \
    11721194        uninstall-fcron \
    11731195        uninstall-firewalld \