Programming :: Init Scripts In /etc/init.d?
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
ADVERTISEMENT
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
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
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
Feb 23, 2011
This is my first init script, so far, it atleast starts the daemon but it fails at creating a pid, so later on I can use to, to either stop it or reload it. Here's the current code: Further more, the script returns ok that it started the pid, when in fact, the pid fails in the background, this script needs MUCH improvement, some help would be nice to fix this script. :/
Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides: znc
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
[Code]...
View 2 Replies
View Related
Jul 9, 2010
I have an a script in /etc/rc.d/init.d script that I would like to start and stop my sample application. I have named my script "foo", then I can start running my application my typing $ foo start but this does not return [OK] like other scripts do and does not return to shell prompt. My application is basically like this
int main()
{
do {
printf("Hi
");
sleep(1);
} while (1);
}
What is missing from my application that prevents from returning the shell prompt?
View 3 Replies
View Related
Jul 19, 2011
I have an initscript that behaves slightly differently in the UK than it does in the US. Not a huge issue, but I'd like to know why and how to fix it. I imagine it has something to do with localization, but I'm at a loss as to what it could be, as it's just bash.
in the UK:
Code:
[root@server ~]# /etc/init.d/worker
status}
in the US:
[Code]...
View 6 Replies
View Related
Jul 12, 2010
I have a project in which many processes run. p1,p2,p3.
->There are some .so files are included in some process when needed example ppp.so in process p1 (when ppp is needed and will go like a plugin) but it has a init () function how a process includes a init() function ?
->process p1 has main function i.e main()
->so evry process has main() right ?
what is the difference between init () and main () functoins. where is init () used and how many init() a process van have ?
View 3 Replies
View Related
Jul 8, 2010
I'm running a Debian based Linux compiled for ARM9 hardware. I am trying to auto start a process on bootup but occasionally I find that my startup script becomes empty (i.e. the file still exists but has not data). The script is located in /etc/init.d/S91-sercom
Here's the script:
Code:
#!/bin/sh # /etc/init.d/S91-sercom
# Start the Serial Communication Protocol Program at boot
echo "Starting Serial Communication"
[Code]....
View 1 Replies
View Related
Oct 18, 2010
I use gtk_window_set_gravity function to init window location on screen. I use different parameter value in Gravity,window location always at top left of screen.I use ubuntu 10.04. Code by follow:
GtkWidget * window, *label;
gtk_init(p_argc, p_argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
[code]....
View 2 Replies
View Related
Oct 12, 2010
am trying to interface ade7758(adc) to at91sam9261...i have written a sample code which registers an spi driver and sends an address to ade7758 and receives a data...every thing is fine.My device is registered but kernel is giving a crash message....below is the message....
[Code]...
View 6 Replies
View Related
Mar 31, 2011
Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?
View 1 Replies
View Related
Jun 19, 2009
Lately I've been trying to install the Nvidia Cuda driver for Linux.In order to do this, I have to tun a .run file. When I run it in the console, It says that I can't install when running the X server. So I try to use "init 3".When I type it, and hit enter, the screen goes black, no blinky cursor thing, just a frozen black screen. I followed one of the nvidia tutorials on here to get the normal nvidia driver, and it worked successfully.Before I installed the nvidia driver, when I would use "init 3" I would get a colourful console window with random coloured blocks of random lettering. It seems that installing the nvidia form the tutorial turned this into a black screen.
View 4 Replies
View Related
Sep 9, 2009
I saw that there are 2 NTP services in /etc/init.d:
/etc/init.d/ntpd - the NTP daemon
/etc/init.d/ntpdate - what is this ? and what is the relation between the 2 services?
I mean... if there is ntpd to do all the clock sync, what is ntpdate's role?
View 3 Replies
View Related
Aug 28, 2015
ow Debian init system is organized actually (btw i am using stretch) ? I see systemd installed, with some services run from it (systemctl shows a small list), but at the same, i still see /etc/init.d full of traditional init scripts.
View 3 Replies
View Related
Sep 10, 2010
use command dpkg -i ****.deb let my deb install a file in /etc/init.d/ what i need to change in debin/rules file?
View 9 Replies
View Related
Aug 1, 2011
I need to start script I created every time so I created:
/etc/init.d/startflowcapture.
There I put:
flow-capture -w /var/netflow/ft 0/0/2055 -S5 -V5 -E1G -n 287 -N 0 -R /usr/local/netflow/bin/linkme
I made it executable:
chmod +x /etc/init.d/startflowcapture
But permanently adding it to rc defaults shows this error:
update-rc.d startflowcapture defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K01startflowcapture' missing LSB tags and overrides
insserv: warning: script 'startflowcapture' missing LSB tags and overrides
View 6 Replies
View Related
Nov 11, 2009
im just stating in fedora..why does i cant restart/start/stop my /etc/rc.d/init.d/smb ? actually i notice that there are no "smb" or "samba" file exist in my /etc/rc.d/init.d/ or in /etc/init.d/
and there is no smb or samba found in my /sbin/chkconfig but i have my samba installed. Im using fedora 10
View 2 Replies
View Related
Jul 14, 2010
This is a minor annoyance, but I'd like to know how to fix it... When starting Fedora 12 with KDE, the KDE icon is twice the size of the other icons. I figure it is easy to make it the same size as all the other icons, but I don't know how. If this seems confusing, I am referring to the screen that appears after you enter your password and before the KDE desktop appears. A set of icons appear one at a time. The KDE icon is clearly twice as large as the others.
View 4 Replies
View Related
Aug 11, 2010
difference between init and telinit?
View 2 Replies
View Related
Jan 22, 2011
I am trying to install a new NVIDIA Driver. as I usualy do I go to a terminal logging off and using "ctrl+Alt +F2" logging in as root and entering "init 3" but when I run "sh NVIDIA" it tells me "X server is still running." If I enter "init 5" it goes right to a gui. I have tried "killlall X11" with no results.
View 7 Replies
View Related
May 3, 2010
At boot, the system hangs before reaching runlevel 5. No X, no alternative non graphical shells.
Since I have a video card Radeon 9200 I checked the ATI issues. I am running with the radeonhd drivers as suggested. If I boot in failsafe mode, X starts with a really low definition (800x640?), but when booting normally, the system hangs again.
I tried to create a xorg.conf file. Sax hangs the same way as when booting. I created anyway a reasonable xorg.conf using
Code:
Xorg -configure
The first reboot works, from the second on I am stuck again.
I am running suse 11.2 32-bit on a AMD at 64 bit.
View 9 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
Jan 26, 2010
I just installed my machine with ubuntu 9.04. When I run "init 3" or "telinit 3", nothing happens. I need to exit the X server to install a video driver.
View 3 Replies
View Related
May 11, 2010
How do I go about changing the init level to 3 on ubuntu 10.04?!? Where is the old inittab file? Do I need to make? I want to boot to a console.
View 3 Replies
View Related