Ticket #1992: avahi-lfs-initscript-fixes.patch

File avahi-lfs-initscript-fixes.patch, 2.9 KB (added by willimm, 15 years ago)

Updated version of the LFS initscript patch.

  • TabularUnified initscript/lfs/Makefile.am

    diff --git a/initscript/lfs/Makefile.am b/initscript/lfs/Makefile.am
    index d5e33f8..d7c509a 100644
    a b  
    1919
    2020initddir = $(sysconfdir)/rc.d/init.d
    2121
    22 EXTRA_DIST = avahi.in
    23 
    2422initd_SCRIPTS = avahi
    2523
    2624CLEANFILES = avahi
    2725
    28 avahi: avahi.in
    29         chmod +x $@
     26avahi:
     27        chmod +x avahi
     28
     29install: install-am
     30        ln -sf ../init.d/avahi /etc/rc.d/rc0.d/K28avahi
     31        ln -sf ../init.d/avahi /etc/rc.d/rc1.d/K28avahi
     32        ln -sf ../init.d/avahi /etc/rc.d/rc2.d/K49avahi
     33        ln -sf ../init.d/avahi /etc/rc.d/rc3.d/S21avahi
     34        ln -sf ../init.d/avahi /etc/rc.d/rc4.d/S21avahi
     35        ln -sf ../init.d/avahi /etc/rc.d/rc5.d/S21avahi
     36        ln -sf ../init.d/avahi /etc/rc.d/rc6.d/K28avahi
  • TabularUnified initscript/lfs/avahi

    diff --git a/initscript/lfs/avahi b/initscript/lfs/avahi
    index e69de29..ba3672a 100644
    a b  
     1#!/bin/sh
     2########################################################################
     3# Begin $rc_base/init.d/avahi
     4#
     5# Description : Avahi daemon loader
     6#
     7# Authors     : William Immendorf - will.immendorf@gmail.com
     8#
     9# Version     : 00.00
     10#
     11# Notes       : Based off of the LFS 6.4 sysklogd script.
     12#
     13########################################################################
     14
     15. /etc/sysconfig/rc
     16. ${rc_functions}
     17
     18case "${1}" in
     19        start)
     20                boot_mesg "Starting the Avahi daemon..."
     21                loadproc avahi-daemon -D
     22                ;;
     23
     24        stop)
     25                boot_mesg "Stopping the Avahi daemon..."
     26                avahi-daemon -k
     27                evaluate_retval
     28                ;;
     29
     30        reload)
     31                boot_mesg "Reloading the Avahi daemon..."
     32                reloadproc avahi-daemon -r
     33                ;;
     34        restart)
     35                ${0} stop
     36                sleep 1
     37                ${0} start
     38                ;;
     39
     40        status)
     41                statusproc avahi-daemon
     42                ;;
     43        *)
     44                echo "Usage: ${0} {start|stop|reload|restart|status}"
     45                exit 1
     46                ;;
     47esac
     48
     49# End $rc_base/init.d/avahi
  • TabularUnified deleted file initscript/lfs/avahi.in

    diff --git a/initscript/lfs/avahi.in b/initscript/lfs/avahi.in
    deleted file mode 100644
    index ba3672a..0000000
    + -  
    1 #!/bin/sh
    2 ########################################################################
    3 # Begin $rc_base/init.d/avahi
    4 #
    5 # Description : Avahi daemon loader
    6 #
    7 # Authors     : William Immendorf - will.immendorf@gmail.com
    8 #
    9 # Version     : 00.00
    10 #
    11 # Notes       : Based off of the LFS 6.4 sysklogd script.
    12 #
    13 ########################################################################
    14 
    15 . /etc/sysconfig/rc
    16 . ${rc_functions}
    17 
    18 case "${1}" in
    19         start)
    20                 boot_mesg "Starting the Avahi daemon..."
    21                 loadproc avahi-daemon -D
    22                 ;;
    23 
    24         stop)
    25                 boot_mesg "Stopping the Avahi daemon..."
    26                 avahi-daemon -k
    27                 evaluate_retval
    28                 ;;
    29 
    30         reload)
    31                 boot_mesg "Reloading the Avahi daemon..."
    32                 reloadproc avahi-daemon -r
    33                 ;;
    34         restart)
    35                 ${0} stop
    36                 sleep 1
    37                 ${0} start
    38                 ;;
    39 
    40         status)
    41                 statusproc avahi-daemon
    42                 ;;
    43         *)
    44                 echo "Usage: ${0} {start|stop|reload|restart|status}"
    45                 exit 1
    46                 ;;
    47 esac
    48 
    49 # End $rc_base/init.d/avahi