Discussion:
Missing file in /etc/init.d...
(too old to reply)
Dave Laird
2005-05-28 14:48:28 UTC
Permalink
Good morning, James...

I just got the following error message which I totally do not understand.

Unpacking replacement mysql-server ...
Setting up mysql-server (4.0.24-10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mysql not found.

I looked in /etc/init.d and the mysql script is missing and presumed dead.
How do I bring it back to life?

Dave
--
Dave Laird (***@kharma.net)
The Used Kharma Lot / The Phoenix Project
Web Page: http://www.kharma.net updated 05/01/2005
Usenet News server: news.kharma.net
Musicians Calendar and Database access: http://www.kharma.net/calendar.html

An automatic & random thought For the Minute:
It's NO USE... I've gone to ``CLUB MED''!!
James Vahn
2005-05-28 17:50:45 UTC
Permalink
Post by Dave Laird
I just got the following error message which I totally do not understand.
Unpacking replacement mysql-server ...
Setting up mysql-server (4.0.24-10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mysql not found.
I looked in /etc/init.d and the mysql script is missing and presumed dead.
How do I bring it back to life?
apt-get install --reinstall mysql-server

Just a hunch, but run fdisk -l and see if there are any complaints
about a geometry mismatch. The kernel might be thinking that the drive
is full.



--
Dave Laird
2005-05-29 10:31:37 UTC
Permalink
Good morning, James...
Post by James Vahn
Post by Dave Laird
I just got the following error message which I totally do not understand.
Unpacking replacement mysql-server ...
Setting up mysql-server (4.0.24-10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mysql not found.
I looked in /etc/init.d and the mysql script is missing and presumed
dead. How do I bring it back to life?
apt-get install --reinstall mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not
upgraded.
Need to get 0B/3645kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 112809 files and directories currently installed.)
Preparing to replace mysql-server 4.0.24-10 (using
.../mysql-server_4.0.24-10_i386.deb) ...
Unpacking replacement mysql-server ...
Setting up mysql-server (4.0.24-10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mysql not found.

It doesn't create the init script, but it tries to call the missing script.
Post by James Vahn
Just a hunch, but run fdisk -l and see if there are any complaints
about a geometry mismatch. The kernel might be thinking that the drive
is full.
Nope. Everything is fine. I think what I need is a copy of the mysql init
script, and that perhaps this is a bug in the MySQL installation process,
no?

Dave
--
Dave Laird (***@kharma.net)
The Used Kharma Lot / The Phoenix Project
Web Page: http://www.kharma.net updated 05/01/2005
Usenet News server: news.kharma.net
Musicians Calendar and Database access: http://www.kharma.net/calendar.html

An automatic & random thought For the Minute:
Try to value useful qualities in one who loves you.
James Vahn
2005-05-29 14:07:18 UTC
Permalink
Post by Dave Laird
Nope. Everything is fine. I think what I need is a copy of the mysql init
script, and that perhaps this is a bug in the MySQL installation process,
no?
A bug in something. Do you have mc installed? Look in /var/cache/apt and
find the mysql-server*.deb with mc. Hit "Enter" and open it up. See if
the missing script is in there, copy it.

You could try mysql-server-4.1, or fetch an older version.

Sounds like something is wrong with the 4.0.24-10 package. I'll try
installing it here, says 22 minutes to go...

Meanwhile.. You can fetch previous versions with this line in sources.list:

deb http://snapshot.debian.net/archive pool mysql-server

Update, then search and/or try something like this:

apt-get install mysql-server=4.0.24-9


--
James Vahn
2005-05-29 15:06:53 UTC
Permalink
Worked fine here, though after I intentionally deleted /etc/init.d/mysql
it sure had a hissy fit - it acted just like you descibed. To fix it:

touch /etc/init.d/mysql
apt-get install --reinstall mysql-server


--
James Vahn
2005-05-29 15:21:58 UTC
Permalink
Post by James Vahn
touch /etc/init.d/mysql
apt-get install --reinstall mysql-server
Ummm.. Whoops! That didn't work either- the 0 byte file remains.
This fixed it, after removing /etc/init.d/mysql again:

dpkg -i --force-confmiss /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb

Setting up mysql-server (4.0.24-10) ...
Configuration file /etc/init.d/mysql', does not exist on system.
Installing new config file as you request.
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.

--
Dave Laird
2005-05-30 02:06:28 UTC
Permalink
Good evening, James...

That seems to have done the trick, James.
Post by James Vahn
Post by James Vahn
touch /etc/init.d/mysql
apt-get install --reinstall mysql-server
Ummm.. Whoops! That didn't work either- the 0 byte file remains.
dpkg -i --force-confmiss
/var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb
Setting up mysql-server (4.0.24-10) ...
Configuration file /etc/init.d/mysql', does not exist on system.
Installing new config file as you request.
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
What an obscure way to install a configuration file. But at least now it
works. Thanks. :-)

Dave
--
Dave Laird (***@kharma.net)
The Used Kharma Lot / The Phoenix Project
Web Page: http://www.kharma.net updated 05/01/2005
Usenet News server: news.kharma.net
Musicians Calendar and Database access: http://www.kharma.net/calendar.html

An automatic & random thought For the Minute:
Just imagine you're entering a state-of-the-art CAR WASH!!
James Vahn
2005-05-30 03:37:52 UTC
Permalink
Post by Dave Laird
What an obscure way to install a configuration file. But at least now it
works. Thanks. :-)
Time for some fun.. I just ran across the 3ddesktop package today. The
regular 4-screen pager is replaced by an animated 3D carousel, where you
can use the mouse to spin it around and switch between screens. It rates
a 10 in the eye candy department. Everyone needs this. ;-)


--
Dave Laird
2005-05-30 05:17:23 UTC
Permalink
Good evening, James...
Post by James Vahn
Post by Dave Laird
What an obscure way to install a configuration file. But at least now it
works. Thanks. :-)
Time for some fun.. I just ran across the 3ddesktop package today. The
regular 4-screen pager is replaced by an animated 3D carousel, where you
can use the mouse to spin it around and switch between screens. It rates
a 10 in the eye candy department. Everyone needs this. ;-)
WOW! This is COOL! Thanks!

Dave
--
Dave Laird (***@kharma.net)
The Used Kharma Lot / The Phoenix Project
Web Page: http://www.kharma.net updated 05/01/2005
Usenet News server: news.kharma.net
Musicians Calendar and Database access: http://www.kharma.net/calendar.html

An automatic & random thought For the Minute:
FIRST, I was in a TRUCK... THEN, I was in a DINER...
Loading...