Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.