From patchwork Sat Apr 8 08:10:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 6781 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Ptnwl3Hf5z3x2l for ; Sat, 8 Apr 2023 08:10:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Ptnwk00gMz25G; Sat, 8 Apr 2023 08:10:29 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Ptnwj6bFTz2yVK; Sat, 8 Apr 2023 08:10:29 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Ptnwh4x0Pz2y0x for ; Sat, 8 Apr 2023 08:10:28 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Ptnwh2q7Qzwh; Sat, 8 Apr 2023 08:10:28 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1680941428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TyVAUsm9azfJPAYHvoSUAJM7Pfj6EdcC9+evWZt08s4=; b=xPKd5PFXfEWzklAbVWysT2LVafb6RhL5Dl/BUE/V81FAH9fuSTMuJJIA4G49LCMGibMqMz fYuEv/0dMuQPgkBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1680941428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TyVAUsm9azfJPAYHvoSUAJM7Pfj6EdcC9+evWZt08s4=; b=CNxPIQUCuVNy2uLQ2cGH+BfkGsSNCv/0ZiummjKI3BUcv/LiSnAWZNAGbjHgigCbGbSEaT Lm+qHoDcpb7CIncdTaMvMCsrj7RXCqh/jAeHWcyDzJGsaaQqL/1cp4+/njN+bfMkLWXyyE f1WsVROT+ACvNwotuP56fv7T3oRw3kVAqok1WvnnNmnxxbIhc0tb7khI93VFc+jlQnfC1O KDuqkx1FlwV905pYGq1KCiG7yWyjA5pGx2J1yW9ZntQ9ays6kzeKQwUDQZoss2NCoKfUnt JpfnGTTbeISi530yLjvibR5r6CoWP0Wk+fU6wrTZfPB6cPRJxaDbQaKUjwtXsg== From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH 2/3] initscript: sort by startup Date: Sat, 8 Apr 2023 10:10:04 +0200 Message-Id: <20230408081005.4098-2-jonatan.schlag@ipfire.org> In-Reply-To: <20230408081005.4098-1-jonatan.schlag@ipfire.org> References: <20230408081005.4098-1-jonatan.schlag@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" As the list of symbolic links was not sorted at all I sorted it now by the order of start or stop. This seems to be the most useful way as you can now understand the startup sequence from this file and add/remove scripts at a useful place. Signed-off-by: Jonatan Schlag Reviewed-by: Michael Tremer --- lfs/initscripts | 105 +++++++++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 51 deletions(-) diff --git a/lfs/initscripts b/lfs/initscripts index bee8a6fc6..9314ff063 100644 --- a/lfs/initscripts +++ b/lfs/initscripts @@ -91,67 +91,78 @@ $(TARGET) : install -v -m 755 $$i /etc/rc.d/helper/; \ done + ln -sf ../init.d/imspetor /etc/rc.d/rc0.d/K01imspetor + ln -sf ../init.d/motion /etc/rc.d/rc0.d/K01motion + ln -sf ../init.d/vdradmin /etc/rc.d/rc0.d/K01vdradmin + ln -sf ../init.d/sslh /etc/rc.d/rc0.d/K02sslh + ln -sf ../init.d/fcron /etc/rc.d/rc0.d/K08fcron + ln -sf ../init.d/apache /etc/rc.d/rc0.d/K28apache + ln -sf ../init.d/sshd /etc/rc.d/rc0.d/K30sshd + ln -sf ../init.d/client175 /etc/rc.d/rc0.d/K34client175 + ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K47setclock + ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc0.d/K49cyrus-sasl + ln -sf ../init.d/vnstat /etc/rc.d/rc0.d/K51vnstat + ln -sf ../init.d/conntrackd /etc/rc.d/rc0.d/K77conntrackd + ln -sf ../init.d/suricata /etc/rc.d/rc0.d/K78suricata + ln -sf ../init.d/leds /etc/rc.d/rc0.d/K79leds + ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network + ln -sf ../init.d/wlanclient /etc/rc.d/rc0.d/K82wlanclient + ln -sf ../init.d/messagebus /etc/rc.d/rc0.d/K85messagebus + ln -sf ../init.d/unbound /etc/rc.d/rc0.d/K86unbound ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/S60sendsignals ln -sf ../init.d/localnet /etc/rc.d/rc0.d/S70localnet ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/S80mountfs ln -sf ../init.d/swap /etc/rc.d/rc0.d/S90swap ln -sf ../init.d/halt /etc/rc.d/rc0.d/S99halt + + ln -sf ../init.d/vnstat /etc/rc.d/rc3.d/S01vnstat ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/S10sysklogd - ln -sf ../init.d/smartenabler /etc/rc.d/rc3.d/S19smartenabler + ln -sf ../init.d/unbound /etc/rc.d/rc3.d/S11unbound + ln -sf ../init.d/fireinfo /etc/rc.d/rc3.d/S15fireinfo ln -sf ../init.d/messagebus /etc/rc.d/rc3.d/S15messagebus - ln -sf ../init.d/messagebus /etc/rc.d/rc0.d/K85messagebus - ln -sf ../init.d/messagebus /etc/rc.d/rc6.d/K85messagebus ln -sf ../init.d/cpufreq /etc/rc.d/rc3.d/S18cpufreq - ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd - ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/S60sendsignals - ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/S70mountfs - ln -sf ../init.d/swap /etc/rc.d/rc6.d/S80swap - ln -sf ../init.d/localnet /etc/rc.d/rc6.d/S90localnet - ln -sf ../init.d/reboot /etc/rc.d/rc6.d/S99reboot - ln -sf ../init.d/sshd /etc/rc.d/rc0.d/K30sshd + ln -sf ../init.d/smartenabler /etc/rc.d/rc3.d/S19smartenabler + ln -sf ../init.d/wlanclient /etc/rc.d/rc3.d/S19wlanclient + ln -sf ../init.d/network /etc/rc.d/rc3.d/S20network + ln -sf ../init.d/leds /etc/rc.d/rc3.d/S21leds + ln -sf ../init.d/conntrackd /etc/rc.d/rc3.d/S22conntrackd + ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc3.d/S24cyrus-sasl ln -sf ../init.d/sshd /etc/rc.d/rc3.d/S30sshd - ln -sf ../init.d/sshd /etc/rc.d/rc6.d/K30sshd - ln -sf ../init.d/apache /etc/rc.d/rc0.d/K28apache ln -sf ../init.d/apache /etc/rc.d/rc3.d/S32apache - ln -sf ../init.d/apache /etc/rc.d/rc6.d/K28apache - ln -sf ../init.d/fcron /etc/rc.d/rc0.d/K08fcron ln -sf ../init.d/fcron /etc/rc.d/rc3.d/S40fcron - ln -sf ../init.d/fcron /etc/rc.d/rc6.d/K08fcron - ln -sf ../init.d/suricata /etc/rc.d/rc0.d/K78suricata - ln -sf ../init.d/suricata /etc/rc.d/rc6.d/K78suricata - ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network - ln -sf ../init.d/network /etc/rc.d/rc3.d/S20network - ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network - ln -sf ../init.d/unbound /etc/rc.d/rc0.d/K86unbound - ln -sf ../init.d/unbound /etc/rc.d/rc3.d/S11unbound - ln -sf ../init.d/unbound /etc/rc.d/rc6.d/K86unbound - ln -sf ../../sysconfig/rc.local /etc/rc.d/rc3.d/S98rc.local - ln -sf ../init.d/client175 /etc/rc.d/rc0.d/K34client175 ln -sf ../init.d/client175 /etc/rc.d/rc3.d/S66client175 - ln -sf ../init.d/client175 /etc/rc.d/rc6.d/K34client175 + ln -sf ../../sysconfig/rc.local /etc/rc.d/rc3.d/S98rc.local ln -sf ../init.d/sslh /etc/rc.d/rc3.d/S98sslh - ln -sf ../init.d/sslh /etc/rc.d/rc0.d/K02sslh - ln -sf ../init.d/sslh /etc/rc.d/rc6.d/K02sslh - ln -sf ../init.d/vdradmin /etc/rc.d/rc3.d/S99vdradmin - ln -sf ../init.d/vdradmin /etc/rc.d/rc0.d/K01vdradmin - ln -sf ../init.d/vdradmin /etc/rc.d/rc6.d/K01vdradmin - ln -sf ../init.d/motion /etc/rc.d/rc3.d/S99motion - ln -sf ../init.d/motion /etc/rc.d/rc0.d/K01motion - ln -sf ../init.d/motion /etc/rc.d/rc6.d/K01motion ln -sf ../init.d/imspetor /etc/rc.d/rc3.d/S99imspetor - ln -sf ../init.d/imspetor /etc/rc.d/rc0.d/K01imspetor + ln -sf ../init.d/motion /etc/rc.d/rc3.d/S99motion + ln -sf ../init.d/vdradmin /etc/rc.d/rc3.d/S99vdradmin + ln -sf ../init.d/imspetor /etc/rc.d/rc6.d/K01imspetor - ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc0.d/K49cyrus-sasl - ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc3.d/S24cyrus-sasl + ln -sf ../init.d/motion /etc/rc.d/rc6.d/K01motion + ln -sf ../init.d/vdradmin /etc/rc.d/rc6.d/K01vdradmin + ln -sf ../init.d/sslh /etc/rc.d/rc6.d/K02sslh + ln -sf ../init.d/fcron /etc/rc.d/rc6.d/K08fcron + ln -sf ../init.d/apache /etc/rc.d/rc6.d/K28apache + ln -sf ../init.d/sshd /etc/rc.d/rc6.d/K30sshd + ln -sf ../init.d/client175 /etc/rc.d/rc6.d/K34client175 + ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K47setclock ln -sf ../init.d/cyrus-sasl /etc/rc.d/rc6.d/K49cyrus-sasl - ln -sf ../init.d/leds /etc/rc.d/rc0.d/K79leds - ln -sf ../init.d/leds /etc/rc.d/rc3.d/S21leds - ln -sf ../init.d/leds /etc/rc.d/rc6.d/K79leds - ln -sf ../init.d/fireinfo /etc/rc.d/rc3.d/S15fireinfo - ln -sf ../init.d/conntrackd /etc/rc.d/rc0.d/K77conntrackd - ln -sf ../init.d/conntrackd /etc/rc.d/rc3.d/S22conntrackd + ln -sf ../init.d/vnstat /etc/rc.d/rc6.d/K51vnstat ln -sf ../init.d/conntrackd /etc/rc.d/rc6.d/K77conntrackd + ln -sf ../init.d/suricata /etc/rc.d/rc6.d/K78suricata + ln -sf ../init.d/leds /etc/rc.d/rc6.d/K79leds + ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network + ln -sf ../init.d/wlanclient /etc/rc.d/rc6.d/K82wlanclient + ln -sf ../init.d/messagebus /etc/rc.d/rc6.d/K85messagebus + ln -sf ../init.d/unbound /etc/rc.d/rc6.d/K86unbound + ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd + ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/S60sendsignals + ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/S70mountfs + ln -sf ../init.d/swap /etc/rc.d/rc6.d/S80swap + ln -sf ../init.d/localnet /etc/rc.d/rc6.d/S90localnet + ln -sf ../init.d/reboot /etc/rc.d/rc6.d/S99reboot + ln -sf ../init.d/mountkernfs /etc/rc.d/rcsysinit.d/S00mountkernfs ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S01sysctl ln -sf ../init.d/modules /etc/rc.d/rcsysinit.d/S05modules @@ -168,20 +179,12 @@ $(TARGET) : ln -sf ../init.d/udev_retry /etc/rc.d/rcsysinit.d/S45udev_retry ln -sf ../init.d/cleanfs /etc/rc.d/rcsysinit.d/S50cleanfs ln -sf ../init.d/setclock /etc/rc.d/rcsysinit.d/S60setclock - ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K47setclock - ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K47setclock ln -sf ../init.d/console /etc/rc.d/rcsysinit.d/S70console ln -sf ../init.d/pakfire /etc/rc.d/rcsysinit.d/S71pakfire ln -sf ../init.d/cloud-init /etc/rc.d/rcsysinit.d/S74cloud-init ln -sf ../init.d/firstsetup /etc/rc.d/rcsysinit.d/S75firstsetup ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet ln -sf ../init.d/firewall /etc/rc.d/rcsysinit.d/S85firewall - ln -sf ../init.d/vnstat /etc/rc.d/rc3.d/S01vnstat - ln -sf ../init.d/vnstat /etc/rc.d/rc0.d/K51vnstat - ln -sf ../init.d/vnstat /etc/rc.d/rc6.d/K51vnstat - ln -sf ../init.d/wlanclient /etc/rc.d/rc0.d/K82wlanclient - ln -sf ../init.d/wlanclient /etc/rc.d/rc3.d/S19wlanclient - ln -sf ../init.d/wlanclient /etc/rc.d/rc6.d/K82wlanclient ln -sf ../../../../../usr/local/bin/qosctrl \ /etc/rc.d/init.d/networking/red.up/24-RS-qos