[root@example rc3.d]# ls -l /etc/rc3.d/*httpd* /etc/rc3.d/*mysql* /etc/rc3.d/*tomcat*
lrwxrwxrwx. 1 root root 16 Jun 15 23:30 /etc/rc3.d/S64mysqld -> ../init.d/mysqld
lrwxrwxrwx. 1 root root 16 Jun 15 23:30 /etc/rc3.d/S73tomcat -> ../init.d/tomcat
lrwxrwxrwx. 1 root root 15 Jun 15 23:30 /etc/rc3.d/S85httpd -> ../init.d/httpd
[root@example rc3.d]# cd
[root@example ~]# vi /etc/init.d/mysqld
Quote:
vi /etc/init.d/mysqld
#!/bin/sh
#
# mysqld This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
# description: MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
|
[root@example ~]# service mysqld restart
/etc/init.d/mysqld: line 6: chkconfig:: command not found
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
[root@example ~]# vi /etc/init.d/mysqld
tomcat service
Quote:
#!/bin/bash
# chkconfig: - 73 37
#
# processname: tomcat
# pidfile: /var/run/tomcat.pid
CATALINA_PID=/var/run/tomcat.pid
JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
CATALINA_HOME=/tomcat/apache-tomcat-6.0.16/
CATALINA_BASE=/tomcat/apache-tomcat-6.0.16/
|
Then too it shows same problem