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


ADVERTISEMENT

Slackware :: When Does Login Get Called During System Init

May 11, 2010

I'm trying to find that line in the init files, but I don't see anything blatantly referring to login yet.

View 4 Replies View Related

Ubuntu :: Fsck Is Called On Every Startup?

May 9, 2010

I am using bootchart to investigate the slow booting of ubuntu 10.04 and I found that fsck process is called every time in the booting for around 5 seconds even the screen does not show any hard disk checking, is that normal ?

View 5 Replies View Related

Ubuntu :: Startup Script Not Being Called?

Jun 25, 2010

I'm setting up an Ubuntu 10.04 machine with the sole purpose being to function as a vpn server.I got openvpn set up but the startup script doesn't appear to be called on bootup even though it is does appear in the rcX.d directories and the openvpn script is in /etc/init.d and is executable and belongs to root:root.I tried running "update-rc.d -f openvpn remove" and "update-rc.d openvpn defaults" on the offchance something went wrong when it was first added to the startup links.

View 2 Replies View Related

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

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

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

Programming :: Destructor Called On Objects In Deque Without It Being Called Explicitly

Jul 13, 2011

I feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.

Code:

This prints:

Code:

Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:

Code:

However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).

So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.

View 4 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 :: 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

General :: The Directory Would Not Exist Until 'mv' Has Been Called As In?

Jul 3, 2011

I want to copy a file from an old directory to a new directory and ideally I would like that the 'mv' command itself could create the directory for me in one step...That is to say that the directory would not exist until 'mv' has been called as in:Code:mv olddirectory/file.dat newdirectory/file.datso mv would create the directory 'newdirectory' in the above call....I am not sure if this is possible however, that is to say I think it may be necessary that the directory 'newdirectory' already exists before I make the above call to mv, as when I make try the above call when 'newdirectory' doesn't exist I get the following error:Quote:mv: cannot move `test1/4215/4215-001R.fit' to `test2/test.fit': No such file or directoryso to sum up, my question is:is there some paramater for 'mv' that I can change so that it will create the new directory as well as copy the file and if not, are there other commands that might do this?

View 3 Replies View Related

General :: Pset Profile To Be Called Only Once?

Mar 24, 2010

Profile is getting called twice for every login change. Interestingly when i use SU, it is invoked once only. how to set profile to be called only once.

View 3 Replies View Related

General :: Use Wine To Install A Program Called E-sword On Ubuntu?

Jun 28, 2011

i have no clu about this wine thing i cant even install it.

View 8 Replies View Related

General :: Noticed There Was Two Files Called Passwd?

Jun 18, 2010

I was looking around the files in /etc/ to see what they were and what they said, then I noticed there was two files called passwd, which confused me a lot for a second then I noticed one of them was actually passwd-.I compared them and they only differed by one line:
< games:36:35:added by portage for gemrb:/usr/games:/bin/bash, which was in passwd but not passwd-.Should these files both exist? If yes, why, what does having both do? If no, then its safe to say I can just delete passwd-

View 2 Replies View Related

General :: What Is It Called When You Move A PDF Window While It Is Loading

May 18, 2010

1. What is it called when you move a PDF window while it is loading and the window manager does not keep up with the image, (it gets all blurry when the window is moved?)Why does this happen?

2. Why is it that when a browser window is clicked to load a new address it won't always go to it. It has to be clicked again.

3 Why is it that sometimes IE is the only browser that will work on XP. FireFox and Opera will not load a page but IE will.

4 Why is it that Firefox on Linux sometimes everything inside the window is slow to appear. It has to be closed to fix it. When the contents does appear it is all at once.

5.Why is printing different things on Linux a problem. I have a lot of inconsistency with trying to print things from Evince. Some docs print and some won't. Copying and pasting is also a problem for Evince.Why?

6. Is there a way to have Linux Shut down after computer activity has stopped and not just with a timer. Lets say I'm trying to download something and I want it to turn off after it has finished with the down load.

7. Why are some Web pages biased towards Windows. I notice that some java scripts will only run right on Windows machines with IE. A lot of on-line forms are like this.

8. Can (MOVIES, PICTURES AND MUSIC) torrents be downloaded on Linux without risk?

9. It seams that Linux browsers do not keep previous web pages in memory so if you want to go back Linux always has to reload them from the server. Why is this?

10. Why is it that browsers sometimes won't indicate that the page has finished loading, "ever".

11. Why does Linux turn on the number-lock when loading its self?

12. Why can't the brightness be adjusted in Totem? There is a menu to change it but it does not work.

View 1 Replies View Related

General :: Stop A Function Called In A Script?

Sep 30, 2010

I made the following script:

Code:
#!/bin/bash
logErrors(){exec 2>/tmp/errorlogfifowhile truedocat /tmp/errorlogfifo |echo $(date "+[%Y-%m-%d %H:%m:%S]") Error: >/var/log/error.logdone}
logErrors
ls inexistentFile
exit 0

If I execute the script I see the formated error message in /var/log/error.log, as to be expected. After the script execution, I hoped "logErrors" was not executing anymore, but when, in another terminal, I call "echo something > /tmp/errorlogfifo", I still see the formated error message "something" in "/var/log/error.log". How can I finalize "logErrors" before the script ends? Or, maybe someone knows a better way to format and log the erros in a script.

I forgot to say that the file "/tmp/errorlogfifo" is a named pipe created by the command "mkfifo /tmp/errorlogfifo".

View 8 Replies View Related

General :: How To Find Out Which Shell Script Called

Dec 6, 2010

I have two shell scripts:

sh1.sh
echo "First script"
echo "Now calling second one"
sh2.sh
sh2.sh
echo "Second script"

In this shell script, I want to print out which shell script called this. In this case, sh1.sh called sh2.sh. So, I want to print out "sh1.sh".How to achieve?

View 1 Replies View Related

General :: Exactly Which Files Are Called When I Login Into Server ?

May 11, 2011

Exactly what sequence of files are called as in the .my_profile,.profile,.vimrc,.vim. These are few files that I are there on the server. I want to know which file is called first and what sequence. Also can you point me to some links that tell exactly what are these files for.

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

General :: 'read' The Log File In Nagios And Produce A So-called 'scoreboard' In Ubuntu 9.10

Jul 26, 2010

Is there any software that can 'read' the log file in nagios and produce a so-called 'scoreboard' (something like a graph) to display the status of the services? I was told that one could 'read' the log file stored in nagios and create a scoreboard.

View 12 Replies View Related

General :: Unit Of Cache Swapping Called Line?

Oct 1, 2010

Need reasons why the unit of cache swapping is called a line rather than a page ?

View 4 Replies View Related

General :: Download A Visual Novel Called Wanko To Kurasou?

Dec 29, 2010

I've been trying to download a visual novel called wanko to kurasou, my laptop doesnt have a disk drive so i have to download it. i found something called 'onsrcipt' but it only works for certain games, do i need a windows emulator or something.

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







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