Ubuntu :: Init.d Startup Script ?

Oct 24, 2010

I have a startup bash script to give the user options at startup (launch firefox etc), however it causes ubuntu to hang on the loading screen with red things at startup. I dropped into command line and removed it, so that is definitely the problem. The script works...does anyone know if having a startup script in init.d can open a terminal to interact with the user, and why this script causes ubuntu to be unable to startup?

View 4 Replies


ADVERTISEMENT

Ubuntu :: /etc/init.d Script Not Loading On Startup?

Jul 14, 2011

I fear I may have missed something simple, but I have a "miner" under /etc/init.d

Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: Miner
# Required-Start: $all
# Required-Stop: $all

[Code].....

I can also manually can start, stop, and restart on it. However, it does not launch on startup. I can find no messages in /var/log/syslog showing any attempt to start it. Did I miss a step?

FYI: uname -a Linux wrath 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux

View 7 Replies View Related

General :: Ubuntu Init.d Script Not Being Called On Startup

Oct 29, 2010

I've got a script in ubuntu 9.04 in init.d that I've set to run on start on with update-rc.d using update-rc.d init_test defaults 99. All of the symlinks are there and the permissions appear to be correct

-rwxr-xr-x 1 root root 642 2010-10-28 16:44 init_test
mike@xxxxxxxxxx:~$ find /etc -name S99* | grep init_test
find: /etc/rc5.d/S99init_test

[code]....

The script runs through source and ./ without issue and behaves correctly. Here is the source of the script:

#!/bin/bash
### BEGIN INIT INFO
# Provides: init test script

[code]....

When the machine starts, I don't see "script called" or "start called" in the test.log at all.

View 1 Replies View Related

Fedora :: View The Startup Programs Of Init Whenever Boot Up?

Aug 26, 2010

I am trying to view the startup programs of init whenever I boot up, but don't know how to edit /etc/inittab file. I am running Fedora FC13 and my runlevel is 3. I have the following in my inittab file:

Quote:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>

[Code]...

View 5 Replies View Related

Programming :: Startup Scripts In Init.d Disappear After Boot Up

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

Fedora Networking :: Setup Pppd On Startup With Init.d Script For Vpn?

Apr 3, 2011

I can connect to Strongvpn (pptp) through command line call 'sudo pppd call stongvpn' followed by' route add default dev ppp0'. Everything works well.I would like to set this up on start up. I use kde. I have set up basic /etc/init.d/strongvpn script which gets called at boot and creates ppp0 but the route command does not seem to work. When I use command route add in terminal the connection comes up.Here's my /etc/init.d script

#!/bin/bash
# chkconfig: 345 85 15
pppd call strongvpn

[code]....

View 3 Replies View Related

Ubuntu :: Running Old Script Instead Of Updated Init.d Script On Startup

May 27, 2011

i wrote a script and placed it in init.d some time ago to run on system startup. that all works well and good. but now i have changed the script (all i basically did was add the line echo 'afasdfasdfsf' > /tmp/x at the start), and the problem is that when i reboot, the old script still seems to be running (ie nothing shows up in /tmp/x). is this a standard feature of ubuntu and i simply need to reload the new script into some sort of cache?

View 2 Replies View Related

Ubuntu :: Computer Seemed To Be Frozen - Reboot - No Init Found. Try Passing Init - Bootarg"

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

Ubuntu :: Error - No Init Found - Try Passing Init=bootarg

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

Server :: Diffrence /etc/init.d And /etc/init.d/rc.d Scripts?

Jul 29, 2010

me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.

View 3 Replies View Related

Ubuntu :: Wont Boot - "no Init Found. Try Passing Init=bootarg"

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

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 View Related

Debian :: INIT : Cannot Execute /etc/init.d/rc?

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

Software :: Stuck In Init 3 Although Indicates Its Init 5?

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

General :: Kernel Panic - Not Syncing - No Init Found - Try Passing Init - Option To Kernel

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

Ubuntu :: Init / Telinit Does Not Seem To Work?

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

Ubuntu :: Changing The Init Level To 3 On 10.04?

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

Ubuntu :: How To Write Init.d Script

Mar 10, 2011

Actually, I want to add my programe called 'fw1loggrabber' to be added once the computer boot (without considering specific time / without CRON). I have check in internet, what should i do are create an init script then make a symbol link under /etc/rc2.d for start and stop the programe. I have modify "Skeleton" script that i find from /etc/init.d/ to be suitable to my programm

[Code]...

View 4 Replies View Related

Ubuntu :: OS Became Unresponsive - No Init Found

Apr 27, 2011

I've been using ubuntu for around 4 months now and have never had a problem until recently. My OS became unresponsive all of a sudden and all I could do was force shutdown my laptop by holding the power button. When I turned it back on, I was given the
"No init found. Try passing init= bootarg" error.
I have looked around online and most solutions point towards a live cd, which I don't have.

View 2 Replies View Related

Ubuntu :: No Init Found, Cannot Fsck?

May 21, 2011

I have a Dell Mini 12 running what I think is Ubuntu 10.10 Netbook Remix. It won't boot all of a sudden, saying 'No init found'. I've been through [URL].. which is VERY close to my problem but I cannot get Disk Utility to work when running off my Live USB. Asking it to check the hard drive results in it telling me the filesystem is 'not clean'.

View 2 Replies View Related

Ubuntu :: /etc/init.d/oracle-xe Is Missing?

Jul 24, 2011

I installed oracle xe second time on ubuntu, this time it did not created following script

/etc/init.d/oracle-xe

what I am missing?

View 2 Replies View Related

Ubuntu :: Can't Execute A Symlink In /etc/init.d?

Aug 22, 2011

So, I made a bash script that I need to be executed on booting, I created it in /etc/sbin/mount_folder.sh

Code:
sudo chmod +x mount_folder.sh
sudo ln -s mount_folder.sh /etc/init.d/mount_folder.sh
Then I try to:

[Code].....

Also, if I create the symbolic link in the same folder I can execute it normally

View 5 Replies View Related

Ubuntu :: Init From Text Mode In 9.10?

Aug 10, 2010

I am willing to boot up in a text mode, and then start X windows when I want to.I found the procedure Ubuntu used is different from other distribution. Would some one give me some hint?

View 5 Replies View Related

Ubuntu Servers :: Disabling GUI From Init Scripts?

Jan 29, 2010

I have a headless Ubuntu computer which is primarily use as a server but which has Ubuntu desktop edition installed. I use X forwarding through SSH occasionally to use GUI programs so I am not looking to remove them. However, I would like to disable any GUI elements that would be started automatically when the computer is booted. Is the graphical login screen the only thing that would be run? or is nautilus, gnome-session etc. started as well? How would I go about removing the necessary entries from the init scripts?

View 2 Replies View Related

Ubuntu Networking :: /etc/init.d/ssh - Setting Options ?

Feb 23, 2010

I have a problem with ssh, in that it's extremely slow when using putty to connect from Windows. A bit of googling suggested that I should use -u0 as a startup option since there's no DNS entry for this machine.

So, at the risk of sounding stupid, how do I put this options in to the /etc/init.d/ssh file? I tried adding it in the the "set" part but got an error, tried adding another "set" line and got an error and tried adding it to the first command there, but also got an error! Where does it go?

View 4 Replies View Related

Ubuntu Servers :: Where Is Samba In Init.d Directory

May 19, 2010

I just installed ubuntu 10.04 on a pc... the server edition. i went to restart samba and it is not in the init.d directory. is there a different folder for server plateforms? cause im use to my 9.10 desktop edition.


also one more question, when i "ls" the /ect/ directory of course i cant see the whole thing because my monitor only shows the bottom of the file, is there a way to list it like the "more" commands, or possibly scroll up?

View 9 Replies View Related

Ubuntu :: Apply Dependency In Init.d Scripts?

May 29, 2010

Is there any way to apply dependency (order) to the execution of init.d scripts ?
I wrote a script and put it in init.d folder and then executed the relative update-rc.d command, but the problem is that the command fails executing on boot time, but it executes with no problem manually. I found that it requires another service (mysql) which I guess it's not ready in time which the scripts starts.

View 1 Replies View Related

Ubuntu :: /init:line7: Can't Open /dev/sr0 :No Medium

Jun 18, 2010

I have made a bootable pen drive (2gb) and have a 30gb partition on my hard drive for unbuntu Im trying to try the OS by USB at the start into The BIOS If ya gets what i mean It successfully loads The Options menu where you pick a choice like run from usb So i run from usb and and it Loads Ubuntu just the purple background and the beans underneath it loading forever in the Logs this comes up

/init:line7:cant open /dev/sr0 :No medium

It will keep going like that anyone know whats wrong? Im using Windows 7 Build 7100* with a computer i built a year ago Intel e8400,6gb Ram, Asus P5Q SE Pro,and 100gb left on hard drive (30 Excluding cause i partitioned it =P) how do i remove the Floppy drive out of BIOS? i have it at the boot up priority at the last 1st is my hard drive then USB then CD Drive

View 3 Replies View Related

Ubuntu :: Missing /etc/init.d/ssh After Compiling Openssh?

Jul 1, 2010

I had to compile openssh so I could have a version with the HPN-SSH patch applied. The compile seems to have gone fine, but oddly enough I have now have no ssh script in my /etc/init.d directory. So I have no easy way of automatically starting openssh-server.Here are the configure options I used when compiling openssh:

Code:
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam

View 1 Replies View Related

Ubuntu :: Back To Desktop Environment From Init 1?

Oct 24, 2010

I have been using Debian desktop environment for years. There, I can sudo init 1; do maintenance; exit to desktop environment again. But when I `resume' from Ubuntu-10.10's maintenance mode, I can just Ctrl-Alt-F1 to login and there seems not an interesting process running.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved