General :: Init Script Approx 30 Sec To Stop?
May 6, 2011
Actually I used a skeleton init script provided in /etc/init.d/ and did some edits to run my own daemon process. This is my source code of file
#! /bin/sh
### BEGIN INIT INFO
# Provides: statd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
[Code]...
Where is a mistake and this script also not printing a "starting [DAEMON]" or "stop [DAEMON]" when I executed the command sudo service [daemon] start/stop
View 1 Replies
ADVERTISEMENT
Jan 21, 2010
When shutting down OpenSuSE 11.2, it sometimes locks up on the "init.d/kdb stop" command and the Caps and Numlock key just flash and I can't do anything but hold the power button to shut off. Why does it do that? I have a Dell 5100 Inspiron laptop, 2.4GHz CPU, 1.5GB ram.
View 4 Replies
View Related
Apr 6, 2010
I'm running a fullscreen display app which shows a 3D scene in OpenGL. The app runs continiously throughout the day unattended.
Here's the sequence of events in how it's loaded:
1) The computer is turned on, and boots into F11 (x86_64)
2) A non-privileged user is automatically logged on
3) The gnome startup applications list contains an entry for a loading script
4) The loading script waits for the network interface (eth0) to ccome up, then starts the display program
This all works just fine, except that about 30 minutes after the computer is turned on and the app starts running, the screen blanks out. Attaching a mouse to the system and moving it around a bit brings the screen back to life. Likewise, SSHing into the machine and killing / restarting the application works as well. Once either of these fixes has been performed, it runs flawlessly for the rest of the day.
I have turned off the screen saver, and set the power settings for monitor shutdown to 'never'.
View 2 Replies
View Related
Nov 14, 2010
I've setup postfox on Fedora 13 in order to send emails to and from gmail. I thought this was working, but it is dropping approx 50% of mails with an error. The other 50% work OK. It seems completely random.
I've read the link but I stil dont quite understand.
My machine is just a PC, on talktalk's network in the UK.
I use dyndns to allocate a DNS alias (well several actually) to my dynamic IP address - not sure if this is relevent.
Is it failing due to a reverse DNS lookup on the dyndns host? Or is it because it cannot resolve my localhost.localdomain?
I used to have this running on opensuse and swear it used to work 100% of the time.
What am I doing wrong?
Quote:
Nov 14 18:12:40 linuxserver1 postfix/smtpd[14619]: connect from localhost.localdomain[127.0.0.1]
Nov 14 18:12:40 linuxserver1 postfix/smtpd[14619]: 367D428388: client=localhost.localdomain[127.0.0.1]
Nov 14 18:12:40 linuxserver1 postfix/cleanup[14622]: 367D428388: message-id=<20101114181240.367D428388@linuxserver1.localdomain>
Nov 14 18:12:40 linuxserver1 postfix/qmgr[2834]: 367D428388: from=<myaccount@gmail.com>, size=3309455, code....
View 4 Replies
View Related
Nov 30, 2010
Can't seem to get past this error Doing a google search resulted with no good answers that pertained to this issue. Not sure what's halting the system from starting up, but it just sits and hangs at this forever. Only able to view the error when booting into single user mode - normal boot hangs after "enabling /etc/fstab swaps: [OK]"
View 3 Replies
View Related
Jun 10, 2010
explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop
View 3 Replies
View Related
Apr 19, 2011
Im am building a Linux distro. It will be very tiny and fast.
I only have a minimal linuxkernel (bzImage) who is 1,2 mb big. And then I have Busybox who is 174,6 kb big.
The commands in busybox is: cd, ls, mkdir, rmdir, wget, httpd, clear, rm, poweroff, halt, reboot, fdisk, mount, umount, free, and cp.
When I compiled the kernel i use initramfs/initrd function and point it to a folder where initrd/initramfs source is.
The kernel works OK with others initramfs/initrd files. But not with my own.
Quote:
Here is how the end of the kernelcomplie look like.
Quote:
Here is my init file who is the initrd/initramfs source.
Quote:
The initramfs folder contains "bin" (folder) and "init" a file. No more.
The problem is that the kernel cannot find/read init file.
View 4 Replies
View Related
Apr 30, 2010
I have a external USB Transcend Hard Drive having capacity 320 GB Formated in NTFS. I have installed ntfs-3g module in my centos 5.4 box for accessing or writing this drive. I am facing a problem in this HDD that when I try to transfer data from cantos machine to this hdd which is approx. 40 GB then after copy of some GB of data to external drive copy gets stuck and also it don't give me any error.. I am able to copy 1 to 5 gb data in my ext. drive. I have checked this drive in same machine on windows xp this situation is same in this platform also and also it gives me in this an error message that write delay failed. I have checked this drive on my laptop which having same winxp sp3 but problem was same.
View 1 Replies
View Related
Sep 8, 2010
I've been having this issue since at least 9.10. I'm randomly encountering disk thrashing and application freezing which lasts around 30 seconds. Some applications seem to encounter this more often than others. Firefox and Picasa are pretty reliable at reproducing the issue. It also happens often when I'm using Transmission. CPU usage is not unusually high during the 'thrashing' sessions. Running iotop hasn't shed any light on the problem either. I was wondering if anyone else has encountered this or maybe someone could give me some clues. I'm running a dell inspiron 530 with ubuntu 10.04 64bit. I have 4gb of ram. Here is my 'df -h' if that is helpful.
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 103G 26G 73G 26% /
none 2.0G 288K 2.0G 1% /dev
none 2.0G 1.1M 2.0G 1% /dev/shm
none 2.0G 232K 2.0G 1% /var/run
[Code].....
View 6 Replies
View Related
Apr 28, 2011
this is in fact my first attempt to try to work on a linux distribution and (dispite my problem) I'm still excited to work with it! I got the taste from messing around with my android phone, so I know a little bit of the syntax of the commands that are used, but it is realy basic.Now, my problem is my screen. I have two crt-screens ( inch and inch) which I can't manage to get working properly.
1. On a fresh install I had the problem that i couldn't get my refresh rate higher than 60 htz.I tryed installing different proposed drivers via the "system -drivers" (don't know if that is the right discription, I'm Dutch).The two proposed drivers didn't solve my problem.
2. I went to NVidia and download the Linux drivers for my graphical card (GeForce 8600 GT).I've gone trough a lot of trouble installing them: you can't install them when the Xserver is running, but commands like "init 1" or "gdm stop" made my system freeze (which is an other question: is this normal?). Eventualy I managed to install it by the "boot in safe mode"-option which I can choose when I boot my computer (I'm on a dual boot with windows 7).
3. Once the drivers installed it got worse. There was only one screen working and it worked only on a resolution of 640x480. It was just horifing. But with a lot of patient I managed to get one screen working at a resolution of 1024x768 and (again) not more then 60 htz, but the other screen was still stuck at 640x480. I kept playing around with it, edited my xorg.conf file manualy, broke it, restored it, etc etc. realy fun
4. This is the status ATM: both screens are working with twinview, both at a resolution of 640x480 (I can only select a lower one) and a refresh rate which I can't edit (stuck at "auto" and certainly way to low).I have an Nvidia driver which I don't like (it has made thing worse) but I can't unistall (I realy just don't know how to do that).I'm going to give my xorg.conf file at the end of this message.If this is a very typicly question, then I excuse myself. I realy have tryed to look for it, but couldn't find a thing. And if I found something, it was explained on a level of experitise much higher then mine.
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 270.41.06 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Mon Apr 18 15:15:00 PDT 2011
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 270.41.06 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Mon Apr 18 15:15:12 PDT 2011[code]....
View 1 Replies
View Related
Dec 1, 2009
I've got a problem with my VLC MediaPlayer (v1.0.3-GoldenEye). During video-playback, my screenbrightness is turned to zero after approx- 30 seconds of playback. After turning the screen brightness to high again, the same thing starts over again. By now, I encountered that changing screen resolutions (e.g. after closing a fullscreen application with a different resolution) also turns my brightness to 0.
View 1 Replies
View Related
Jan 1, 2011
I've been dual booting 10.10 with Windows7 for about a month. Today is the first time I've encountered a serious problem.
This morning, nothing functioned properly after trying to open several programs. The computer seemed to be "frozen", although the mouse was working fine.
I decided to reboot, but then encountered an even bigger problem.
It failed to boot and got this message: no init found. try passing init= bootarg
The problem now is that it requires a Live CD session and I keep getting this: GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
In case it matters, I didn't install 10.10 from an ISO, I just upgraded from 10.04.
View 2 Replies
View Related
Jan 20, 2010
Ubuntu 9.10 will not boot! System froze this morning, I restarted and it is now failing to boot. Starts loading grub and I get this message:
mount: mounting /dev/disk/by-uuid/04aa3697-7bc0-45b5-b86a-77a1e6534bd5 on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys failed: no such file or directory
[code]....
I booted with 9.04 LiveCD discovered the drive could not be mounted-ran fsck -ln and it told me the drive has no valid partition table. I have had intermittent problems mounting flash drives before this, so I'm kind of worried it might be a hardware issue.Also have files on that drive I would rather not lose, so reinstalling is hopefully a last resort.
View 9 Replies
View Related
Jul 29, 2010
me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.
View 3 Replies
View Related
Oct 11, 2010
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
View 1 Replies
View Related
Sep 17, 2010
I have written an init script and placed it in /etc/init.d/ directory.What I would like to know is, will the script run automatically or we need to install the script using "install_initd" command.If I have to invoke this command manullay, what will be the best place to do this ? Can I add this to "/etc/init.d/rcS" file
View 6 Replies
View Related
May 7, 2011
I'm trying to boot Emdebian lenny on my compact flash and it shows the following errors during boot time :
Code:
Mounting local filesystems ... done .
/etc/rc.d/S35mountall.sh : line 45 : uname : command not found .
[code]...
View 3 Replies
View Related
Mar 17, 2011
openSUSE 10.3 on Itronix IX260+ Stuck on command line, init 3, and all attempts at graphic init 5 fail. Get these messages:(EE) No devices detected; Fatal screen error: no screens found; AIGLX disabled Primary Device is PCI 01:00:0kernel:device-mapper:multipath round-robin:version 1.0.0 loaderkernel:device-mapper:table:253:0:multipath: error getting device
kernel:device-mapper:ioctl: error adding target to tableProblem would seem to be with the device-mapper, but have no idea how to fix it.
View 3 Replies
View Related
Jan 31, 2011
While I was using my computer a few days ago, the terminal stopped working properly, so I tried to reboot, and when it started up again it wouldn't boot and said "no init found. try passing init=bootarg"
This has happened twice before, so I really need to figure out what keeps happening, otherwise I can't continue to use linux. i reinstalled both times before. i think that this is caused by a process that prevents me from using the hard drive, because when I try to check the disk in the terminal or in gparted, it says Device or resource busy while trying to open /dev/sda1. Filesystem mounted or opened exclusively by another program?
Also, in the disk utility, in the lower right corner of the filesystem it has a spinning "loading wheel".(i'm not sure if that means anything)
I am using ubuntu 10.10, but am not sure what kernel I am using, but i tried a few different kernel options(there's three of them at start up). safe mode does not work either.
View 3 Replies
View Related
Sep 30, 2010
I want to shutdown my computer as if power was cut off (don't ask me why). How do I do this under Linux?
View 6 Replies
View Related
Aug 11, 2011
When I run the command startx it launches me immediately into Gnome without having to login and if I attempt to go back to the command line interface by typing in the comamnd init 3 in the x-terminal it does nothing. If I attempt to hit CTRL-ALT-Backspace it does nothing however if I were to run init 5 it launches me into the Gnome Display Manager and expects me to login and if I run init 3 in the x-terminal it shutdowns the x-server and returns me to the command line interface.
View 3 Replies
View Related
Mar 28, 2010
see if there are differences between init 0 and shutdown -h now?
View 3 Replies
View Related
Aug 11, 2010
Our system has a large number of init scripts (over 180). When we reboot it, we need it to be reachable over the network before all the init scripts load, so putting the routes in rc.local does not work. What's the best place to put the routes so that they get added as soon as possibe?
View 4 Replies
View Related
Dec 14, 2009
I would like to know the working of init command.please tell discribe the init script stored in vim /etc/rc.d/init.d/functions. what happen when init changes its run level.
View 2 Replies
View Related
Feb 23, 2011
I'm running Linux Mint 10, although I've had this same issue with other variants of Linux. I've been told/found while researching that if the X server hangs or otherwise errors, one can drop to a root prompt, usually at another tty, and execute init 3 (to drop to single user mode) and then init 5 to return to the default, graphical session. Needless to say, I've tried this before in multiple configurations on multiple machines to no avail.
The only feedback I receive form executing those two commands is a listing of VMWare services (from a kernel module) that are stopped and then restarted. If I run startx (either before or after init 3), then I am told that the xserver is still running and that I should remove /tmp/.X0-lock. Having tried that, it removes that error message, but claims that the xserver cannot be attached as another instance is running. How do I kill the xserver completely? Can I killall some process name?
View 2 Replies
View Related
Mar 28, 2011
I am trying something: I would like to access to some data stored on a usb stick while I am booting to the kernel using the "init=/bin/sh" parameters.Is that possible ?My USB stick is detected when I do 'cat /var/log/messages.log | grep sdb". I had to "modprobe usb-storage".Quote:localhot kernel : sdb: sdb1localhost kernel: sd 3:0:0:0: [sdb] Attached SCSI removable diskBut I still can't get it mounted.Quote:mount: special device /dev/sdb1 does not exist"
View 2 Replies
View Related
Jul 9, 2010
I have a script in /etc/rc.d/init.d named foo. I want to start/stop/restart my process as follows:$ foo start But I do not see the [OK] message once it starts. There is no shell prompt returned either. It seems that my own process is the problem. The executable that foo calls is built from this sample code:
int main()
{
do {
printf("Hello world
");
sleep(1);
} while (1);
}
Do I have to return some kind of signal handle for this to work?
View 6 Replies
View Related
Nov 10, 2010
For a special purpose I needed a initramfs - that didn't work. So I reduced the initramfs setup to the simplest.
Mount the root and switch_root into it. But that didn't work either.
If I go with the init-script for the initramfs I posted below the system prints out the switch_root usage-text from busybox. But the syntax is right, ain't it?
When I use chroot instead of switch_root then it prints the usage-text of init before the kernel panic.
If I try with "/sbin/init 5" then, after a while the system reports "init: timeout opening/writing control channel /dev/initctl".
In the other cases I get the following error messages before the system hangs: "Kernel Panic", "Attempted to kill init", "init not tainted"
(With the init script below there is a error saying:"sh: can't access tty; job control turned off". I know why it's there - but don't know if it is connected to this problem.)
This information may be important:
- The machine boots from a usb-harddisk
- /sbin/init on the new root is available
- the system on newroot is sane and runs perfect standalone (without initramfs)
- the system on newroot uses baselayout-2 with openrc
- busybox is built as static binary
- busybox version is v1.15.3
Here is the relevant data:
My uname -a on that machine:
Code:
Content of the initramfs:
Code:
View 1 Replies
View Related
Jun 26, 2011
- I see that in git, I can't do git-push to a repository that wasn't created with git-init --bare. Why?
- But doing git-pull and git-checkout to the same repository is possible.?
View 1 Replies
View Related
May 21, 2010
I have made some modifications to the init script that runs when my PC boots to take me to a /bin/sh shell so I can run some custom scripts. When I exit from here the init statement should mount the root file system and switch_root to it. This all works correctly however the same init statement will be run on two types of pc's and the address of the root fs is different between them. On one PC it sits on /dev/sda1 and on the other /dev/hda1. To select the appropriate addresses I used dmesg to find out if it was the i5 PC and if/else statements to select the right hard drive location.
When I try use a if/else statement in the init script it ends up preforming both the if and the else code. Is there any reason the if else statements wouldn't work the exact same in the init script (it's all shell scripts isn't it?
[Code]...
View 3 Replies
View Related