LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Bootup script for msql

[ILUG] Bootup script for msql

John Mc Donald johnmcd at cs.may.ie
Tue May 16 10:00:03 IST 2000


I've been trying to write a startup script for mSQL but can't seem to
get it to work.
To do this I have just ripped off the htttpd startup script.

The problem is that when I try
    msql start
it pops up with
    Starting mSQL(msql2d):
and hangs there. I have looked at the code for "daemon" in functions but
can't see the
problem.

Any help much appreciated.

Thanks,
John.



------Start of msql script ------------

#!/bin/sh
#
# Startup script for the miniSQL Server
#
# description: mSQL is a RDBMS server
#
# processname: msql2d
# pidfile: /usr/local/Hughes/msql2d.pid
# config: /usr/local/Hughes/msql.conf
# config: /usr/local/Hughes/msql.acl


# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        echo -n "Starting mSQL(msql2d): "
        daemon msql2d
        echo
        touch /var/lock/subsys/msql2d
        ;;
  stop)
        echo -n "Shutting down mSQL(msql2d): "
        killproc msql2d
        echo
        rm -f /var/lock/subsys/msql2d
        rm -f /usr/local/Hughes/msql2d.pid
        ;;
  status)
        status msql2d
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

exit 0

------End of msql script ------------



--
==================================
John Mc Donald,
Dept. of Computer Science,
National University of Ireland,
Maynooth,
Co. Kildare,
Ireland.

Email : johnmcd at cs.may.ie
Phone : +353 -1 - 7084589
Fax : +353 -1 - 7083848
http://www.cs.may.ie/~johnmcd
==================================






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell