Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-03-2004, 12:03 PM   #1
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
add service to "system services list"?

two questions about the following script i created

if [ "$test" = "start" ]
    /usr/local/sbin/LCDd -d MtxOrb&
    sleep 1
    /usr/bin/mtxorb /dev/lcd
    sleep 1
    /usr/local/bin/lcdproc K -d
    if [ "$test" = "stop" ]
	killall lcdproc
	killall LCDd
	if [ "$test" = "restart" ]
	    killall lcdproc
	    sleep 1
	    killall LCDd
	    sleep 1
	    /usr/local/sbin/LCDd -d MtxOrb&
	    sleep 1
	    /usr/bin/mtxorb /dev/lcd
	    sleep 1
	    /usr/local/bin/lcdproc K -d
	    echo restart start or stop
the purpose is to start and stop LCDd and a clock lcdproc client

first question, how could this perhaps be made more efficient

second of all, i put it in /etc/rc.d/init.d and linked it to the proper names in the /etc/rc.d/rcX.d directories, how do i get it to appear under "system services" within the "setup" program so it can start and stop on runlevel change?

opps, third, how do i get it to say
starting lcd [ OK ] or [ FAIL ]
stoping lcd [ OK ] or [ FAIL ]

when invoked?

Last edited by frieza; 04-03-2004 at 12:30 PM.
Old 04-03-2004, 01:15 PM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
the file /etc/rc.d/rc.sysinit has all that ok/failed stuff,

shuffle it into there or put it into rc.5.
Old 05-05-2004, 11:51 AM   #3
LQ Newbie
Registered: May 2004
Posts: 1

Rep: Reputation: 0
chkconfig --add servicename

that rc[X].d stuff is for chkconfig
the setup program is a front for chkconfig

chkconfig --add servicename

where servicename is the name of the script you added to /etc/rc.d/init.d

not sure about the [ok] stuff.

chkconfig --help is useful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add service remotly "yp" RH 7.2 sgoldman Linux - Newbie 2 09-17-2005 12:27 PM
add "Artist" and "Album Title" to mp3 files powah Linux - Software 2 04-05-2005 03:04 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM
How to add a system service in "ntsysv" list? yuzuohong Linux - General 1 07-15-2002 07:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration