Changeset 40d91bde for general/sysutils
- Timestamp:
- 03/22/2004 07:42:22 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 15995a1
- Parents:
- cc265e51
- Location:
- general/sysutils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/fcron/fcron-config.xml
rcc265e51 r40d91bde 20 20 situation.</para> 21 21 22 <para>Create the boot script with the following:</para> 23 24 <screen><userinput><command>cat > /etc/rc.d/init.d/fcron << "EOF" 25 #!/bin/sh 26 # Begin $rc_base/init.d/fcron 27 28 # Based on sysklogd script from LFS-3.1 and earlier. 29 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 30 31 . /etc/sysconfig/rc 32 . $rc_functions 33 34 case "$1" in 35 start) 36 echo "Starting fcron..." 37 loadproc fcron 38 ;; 39 40 stop) 41 echo "Stopping fcron..." 42 killproc fcron 43 ;; 44 45 restart) 46 $0 stop 47 sleep 1 48 $0 start 49 ;; 50 51 status) 52 statusproc fcron 53 ;; 54 55 *) 56 echo "Usage: $0 {start|stop|restart|status}" 57 exit 1 58 ;; 59 esac 60 61 # End $rc_base/init.d/fcron 62 EOF 63 chmod 755 /etc/rc.d/init.d/fcron</command></userinput></screen> 64 65 <para>Create the symbolic links to this file in the relevant 66 <filename class="directory">rc.d</filename> directory 67 with the following commands:</para> 68 69 <screen><userinput><command>cd /etc/rc.d/init.d && 70 ln -sf ../init.d/fcron ../rc0.d/K08fcron && 71 ln -sf ../init.d/fcron ../rc2.d/S40fcron && 72 ln -sf ../init.d/fcron ../rc3.d/S40fcron && 73 ln -sf ../init.d/fcron ../rc4.d/S40fcron && 74 ln -sf ../init.d/fcron ../rc5.d/S40fcron && 75 ln -sf ../init.d/fcron ../rc6.d/K08fcron</command></userinput></screen> 22 <para>Install <filename>/etc/rc.d/init.d/fcron</filename> 23 init script from the <xref linkend="intro-important-bootscripts"/> package.</para> 24 25 <screen><userinput><command>make install-fcron</command></userinput></screen> 76 26 77 27 </sect3> -
general/sysutils/gpm/gpm-config.xml
rcc265e51 r40d91bde 3 3 4 4 <sect3><title>gpm init.d script</title> 5 <para>The <command>gpm</command> init.d script can be created using 6 the following commands: <!-- (This assumes that you have followed the 7 <acronym>LFS</acronym> default of having your $rc_base set to <filename 8 class="directory">/etc/rc.d</filename>) --></para> 9 <screen><userinput><command>cat > /etc/rc.d/init.d/gpm << "EOF"</command> 10 #!/bin/sh 11 # Begin $rc_base/init.d/gpm 5 <para>Install the <filename>/etc/rc.d/init.d/gpm</filename> 6 init script included in the 7 <xref linkend="intro-important-bootscripts"/> package.</para> 12 8 13 # Based on sysklogd script from LFS-3.1 and earlier. 14 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 15 # GPM specific parts by Mark Hymers - markh@linuxfromscratch.org 9 <screen><userinput><command>make install-gpm</command></userinput></screen> 16 10 17 . /etc/sysconfig/rc18 . $rc_functions19 20 if [ -f /etc/sysconfig/mouse ]21 then22 source /etc/sysconfig/mouse23 fi24 25 if [ -z "$MDEVICE" ] || [ -z "$PROTOCOL" ]26 then27 echo "Please create an /etc/sysconfig/mouse file containing"28 echo "MDEVICE and PROTOCOL values"29 exit 1;30 fi31 32 case "$1" in33 start)34 echo "Starting gpm..."35 loadproc gpm -m $MDEVICE -t $PROTOCOL36 ;;37 38 stop)39 echo "Stopping gpm..."40 killproc gpm41 ;;42 43 restart)44 $0 stop45 sleep 146 $0 start47 ;;48 49 status)50 statusproc gpm51 ;;52 53 *)54 echo "Usage: $0 {start|stop|restart|status}"55 exit 156 ;;57 esac58 59 # End $rc_base/init.d/gpm60 <command>EOF61 chmod 755 /etc/rc.d/init.d/gpm</command></userinput></screen>62 63 <para>You then need to create symbolic links to this file in the64 relevant <filename>rc.d</filename> directories. For example:</para>65 <screen><userinput><command>cd /etc/rc.d/init.d &&66 ln -sf ../init.d/gpm ../rc0.d/K10gpm &&67 ln -sf ../init.d/gpm ../rc1.d/K10gpm &&68 ln -sf ../init.d/gpm ../rc2.d/K10gpm &&69 ln -sf ../init.d/gpm ../rc3.d/S70gpm &&70 ln -sf ../init.d/gpm ../rc4.d/S70gpm &&71 ln -sf ../init.d/gpm ../rc5.d/S70gpm &&72 ln -sf ../init.d/gpm ../rc6.d/K10gpm</command></userinput></screen>73 11 </sect3> 74 12
Note:
See TracChangeset
for help on using the changeset viewer.