]> granicus.if.org Git - zfs/commitdiff
Use /sbin/openrc-run for openrc init scripts
authorBtbN <btbn@btbn.de>
Wed, 16 Aug 2017 22:51:51 +0000 (00:51 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Aug 2017 22:51:51 +0000 (15:51 -0700)
Using /sbin/runscript is deprecated and throws a QA warning
when still used in init scripts.

Reviewed-by: bunder2015 <omfgbunder@gmail.com>
Signed-off-by: BtbN <btbn@btbn.de>
Closes #6519

etc/init.d/Makefile.am

index 247db0aba82d1c5185c8a62d1a4ef96e65328f93..93432386a2c425e7230663b0cf95548699450077 100644 (file)
@@ -22,7 +22,7 @@ $(init_SCRIPTS) $(initconf_SCRIPTS) $(initcommon_SCRIPTS):%:%.in
                NFS_SRV=nfs; \
          fi; \
          if [ -e /sbin/openrc-run ]; then \
-               SHELL=/sbin/runscript; \
+               SHELL=/sbin/openrc-run; \
          else \
                SHELL=/bin/sh; \
          fi; \