LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-30-2009, 06:28 AM   #1
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 15
Unhappy make costume init script


hi
i have to make th following script an init one

Code:
# !/bin/bash

if [-e /tmp/mysql.pipe]; then
   while [-e /tmp/mysql.pipe] 
          do
              mysql -u root --password='syslog'   syslog < /tmp/mysql.pipe
          done
else

mkfifo /tmp/mysql.pipe

fi

i found this solution
Creating Custom init Scripts
were this part made me crasy
Code:
# Check for missing binaries
BAR_BIN=/usr/bin/bar
test -x $BAR_BIN || { echo "$BAR_BIN not installed";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }

# Check for existence of needed config file and read it
BAR_CONFIG=/etc/bar.cfg
test -r $BAR_CONFIG || { echo "$BAR_CONFIG not existing";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 6; fi; }

# Read config
. $BAR_CONFIG
I don't know what to put in the config and the bin file ?????????????????

The only thing i know is that the config file will allow me to change the database name the root password and so one

please i realy need help in this issue
thanks
 
Old 04-30-2009, 11:17 AM   #2
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 15
need help hear guis

i am sinking here
i dont know how to générate or create thees bin and config files its the first time. to do such complicated thing

thks
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script init.d anna611 Linux - Newbie 9 11-28-2007 12:22 PM
need help with init script batymahn Linux - Server 1 08-23-2007 11:12 AM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
can't boot /dev/hde7 need to make an init? esm_menc Linux From Scratch 1 05-02-2006 11:48 PM
could use some help with my init.d script.... BrianK Linux - General 3 10-31-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:42 PM.

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