LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-24-2005, 08:51 AM   #1
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Rep: Reputation: 0
shutdown.pid


Hello everybody.
i'm experiencing some problems while shutting down the system.
Everything started when i had the (bad?) idea to try initng to get my computer booting faster. For those who don't know initng I can try to give a brief explanation of how it works.
Initng is a "successor" of the deprecated sysvinit, that should help you to load your system faster, but it does not rely on the usual init, it is a standalone program, with its own scripts. The only way to load it is to say the lilo do start using it instead of the usual init. The system did not start properly, but I wasn't too worried, because i knew that i only needed to remove the "append" string from lilo (or to comment it) to get my system working again. And that's what i did, i commented that line and lauched lilo, from root, then rebooted. The system loaded as i expected, apparently. Infact the first problem was that xfce wouldn't have started himself, while the permissions of /tmp where corrupted. That was not a problem, i made a "chmod -R 1777 /tmp" and got everything working.

Right now i have some worse problems, like not getting cdrecord working (i don't know if it's a problem that came from the initng script, but it started with initng ) having a message of warning that says that i am unable to uccess to scsi buffer (i/o error) and, most important, not getting the system to shut down. After he unmounts the devices he says something like "cannot access to /var/run/shutdown.pid : No such file or directory."
I watched on some other computer, none of them has got this file, so i suppose he creates it while shutting down, and then he has to access it. I'm pretty sure that i'm still having problems with permissions, anyway i checked /var permissions and they are ok (compared with another system that woks, and it is a slackware 10.1 too).

I hope you will be able to help me, and i thank you for your patience.

Last edited by kibuzo; 05-24-2005 at 08:57 AM.
 
Old 05-24-2005, 10:29 AM   #2
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Quote:
i'm experiencing some problems while shutting down the system.
[root@system:#] shutdown -h now

--Abid Kazmi
 
Old 05-24-2005, 11:05 AM   #3
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
yeah, i wish.
halt
shutdown -h now
poweroff


always the same problem.
 
Old 05-24-2005, 12:46 PM   #4
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
What do you mean "I wish"...

--Abid Kazmi
 
Old 05-24-2005, 02:18 PM   #5
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
i mean that it is not that easy to solve my problem. I already tried, as i explained.
and even being root :P

Last edited by kibuzo; 05-24-2005 at 02:25 PM.
 
Old 05-29-2005, 05:54 PM   #6
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
no idea? anyone? i'm all alone, i'm scared...


...i'm an idiot :P

help me, i have sons
well, not really, but...
 
Old 05-29-2005, 07:29 PM   #7
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
What happens if you do
init 6 or init S
Make sure you use usual 'init'.

Then if same thing happens, follow scripts and which one hits that error,
otherwise you are no longer in trouble.

I only can guess and these are what I would do.

Last edited by kaz2100; 05-29-2005 at 07:44 PM.
 
Old 05-30-2005, 06:35 PM   #8
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
i just tried and i still get the same error. Thanks anyway!

any other idea? o_O
 
Old 05-30-2005, 09:57 PM   #9
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Can you post screendump?
 
Old 05-31-2005, 04:31 AM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
initng just runs scripts in parrallel or as daemons. Its very easy to do with BSD or System-V setup. You just need to know how to run scripts as daemons and know which script(s) depends on others.

Lets say that we want SAMBA, SSH, HTTP, FTP to load up at startup using System-V setup. These services depends on the network being up. You just run the network script first. Next you run the serivces as follows:

samba &
ssh &
http &
ftp &

These scripts will run at the same time (parrallel) instead one at a time (serial) cutting the load time about 60%. The above is to show an example, so it may not be the same with other System-V init setups.

Some programs writes to /var/run to notify you what process id its using, so you can write scripts to use this information. This directory is usually emptied at bootup.

Probably re-installing or restoring from a backup will take less time than finding the gremlin.
 
Old 06-02-2005, 01:42 PM   #11
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by kaz2100
Can you post screendump?
http://img133.echo.cx/img133/7402/untitled9vz.jpg

i have no backup
 
Old 06-02-2005, 03:17 PM   #12
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Hm.../var/run/shutdown.pid. I guess if it doesn't exist, the command is linked incorrectly. I'm not sure how you can fix that but I'm sure someone will respond.

--Abid Kazmi
 
Old 06-03-2005, 01:26 PM   #13
kibuzo
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by securehack
Hm.../var/run/shutdown.pid. I guess if it doesn't exist, the command is linked incorrectly. I'm not sure how you can fix that but I'm sure someone will respond.

--Abid Kazmi
i hope so :P
 
Old 06-03-2005, 07:12 PM   #14
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Following messages come with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

Is that "error message" or "warning"?

It looks like that your shutdown script is messed up during your improvement work, which ended up havoc.

I am sure you have enough experience to check these scripts, as you have done "initing"

I would do Electro's suggestion, re-install these scripts.

 
Old 06-03-2005, 09:53 PM   #15
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
What I meant, just re-install Linux if you do not have a backup to refer to. With all tinkering, always make a backup. You never know when a gremlin will ruin your night.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help on how to save services shutdown or shutdown from the terminal. wambuzz Linux - General 2 03-11-2005 07:38 AM
/var/run/[XXX].pid - Tcl pid code liguorir Linux - Software 1 05-20-2004 10:32 PM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM
ERROR: Couldn't write pid to pid file lawrencegoodman Linux - Newbie 2 02-13-2004 08:05 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 AM.

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