[Clfs-dev] bootscript
Steven Swann
swannonline at googlemail.com
Tue Dec 28 07:35:48 PST 2010
The following are my two boot scripts for addition to the bootscripts
package.
I have enclosed the Makefile sections along with the two init.d
scripts as text in this email. If they are required as files then
please let me know.
I have added this package to the CBLFS wiki - http://cblfs.cross-lfs.org/index.php/LCDproc
- and would like to add the bootscript install procedure of this
page. When will it be added? Should I just reference this in my page
now and wait for it to update?
[Makefile]
#LCDd - The LCDproc server
make install-LCDd create-dirs
install -m ${MODE} cblfs/init.d/LCDd ${EXTDIR}/rc.d/init.d/
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc0.d/K65LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc1.d/K65LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc2.d/K65LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc3.d/S35LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc4.d/S35LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc5.d/S35LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc6.d/K65LCDd
#lcdproc - The LCDproc Client
make install-lcdproc create-dirs
install -m ${MODE} cblfs/init.d/LCDd ${EXTDIR}/rc.d/init.d/
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc0.d/K65LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc1.d/K65LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc2.d/K65LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc3.d/S35LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc4.d/S35LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc5.d/S35LCDd
ln -sf /etc/rc.d/init.d/LCDd /etc/rc.d/rc6.d/K65LCDd
install -m ${MODE} cblfs/init.d/lcdproc ${EXTDIR}/rc.d/init.d/
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc0.d/K60lcdproc
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc1.d/K60lcdproc
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc2.d/K60lcdproc
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc3.d/S40lcdproc
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc4.d/S40lcdproc
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc5.d/S40lcdproc
ln -sf /etc/rc.d/init.d/lcdproc /etc/rc.d/rc6.d/K60lcdproc
[/Makefile]
[cblfs/init.d/LCDd]
#!/bin/bash
# Begin $rc_base/init.d/LCDd
# Based on sysklogd script from LFS-3.1 and earlier.
# ChangedBy: Steven Swann (sjs205) <swannonline at googlemail.com>
# Date: Mon Dec 27 16:12:51 GMT 2010
# Start or stop the LCDd server based upon the first argument to the
script.
. /etc/sysconfig/rc
. $rc_functions
case $1 in
start)
boot_mesg "Starting LCDd, the LCD server..."
loadproc /usr/sbin/LCDd
;;
stop)
boot_mesg "Stopping LCDd, the LCD server..."
killproc /usr/sbin/LCDd
;;
reload)
boot_mesg "Reloading LCDd, the LCD server..."
reloadproc /usr/sbin/LCDd
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc /usr/sbin/LCDd
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/LCDd
[/-cblfs/init.d/LCDd]
[cblfs/init.d/lcdproc]
#!/bin/bash
# Begin $rc_base/init.d/lcdproc
# Based on sysklogd script from LFS-3.1 and earlier.
# ChangedBy: Steven Swann (sjs205) <swannonline at googlemail.com>
# Date: Mon Dec 27 16:12:51 GMT 2010
# Start or stop the lcdproc client based upon the first argument to
the script.
. /etc/sysconfig/rc
. $rc_functions
case $1 in
start)
boot_mesg "Starting lcdproc, the LCD client..."
loadproc /usr/bin/lcdproc
;;
stop)
boot_mesg "Stopping lcdproc, the LCD client..."
killproc /usr/bin/lcdproc
;;
reload)
boot_mesg "Reloading lcdproc, the LCD client..."
reloadproc /usr/bin/lcdproc
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc /usr/bin/lcdproc
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/lcdproc
[/-cblfs/init.d/lcdproc]
Steven Swann
swannonline at googlemail.com
On 28 Dec 2010, at 11:01, Jonathan Norman wrote:
> Hi, This mailing list would probably be the best place.
>
> Jon~
>
> On 27 Dec 2010, at 15:11, Steven Swann wrote:
>
>> Hello All,
>>
>> Is this the correct place to submit a bootscript for addition to
>> the bootscript package?
>>
>> What files are required?
>>
>> Best regards,
>>
>> Steven Swann
>> swannonline at googlemail.com
>>
>>
>>
>> _______________________________________________
>> Clfs-dev mailing list
>> Clfs-dev at lists.cross-lfs.org
>> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
More information about the Clfs-dev
mailing list