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


ADVERTISEMENT

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

Ubuntu Networking :: /etc/resolv.conf Not Updated On Startup?

Mar 9, 2010

I'm using 9.10 Ubuntu Karmic 64-bit (but same thing happens on my 32 bit VM on same PC).

My /etc/resolf/conf file is not updated with DNS information on first boot. The DNS information is in the /etc/network/interfaces file.

The trick I have to do every time I reboot the PC is:

Code:
sudo ifdown eth0 && sudo ifup eth0

First off, why? Second how can I resolve this issue?

I have three NICs eth0 and 1 are normal LANs connected to the internet, but I choose eth0 as the primary. eth2 is a local private one. the DNS information from eth0 should be in the resolv.conf file but isn't. The file is empty at bootup, except for some comments instructing me not to edit this. After running the above sudo commands the file is properly updated and internet works.

Here's my /etc/network/interfaces file's contents:

Code:
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp

[Code]...

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

General :: Shutdown A Box Without Running Init 0?

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

Ubuntu :: Error Encountered When Running Init Bash Script?

Apr 16, 2010

I'm trying to get a daemon to start automatically using an init bash script - i suppose this is what it is called. This is what I did to 'install' the script.

sudo cp inittestdaemon /etc/init.d/
sudo update-rc.d inittestdaemon defaults 91
sudo chmod 777 /etc/init.d/inittestdaemon

The script didn't work, so I tried running it directly on the terminal and this is the error which i got:

[Code]...

View 3 Replies View Related

Ubuntu :: Boot Hangs After Running /scripts/init-bottom?

Jan 21, 2011

Data points:-Ubuntu 2.6.32-19-server-First symptom, blinking cursor on boot-After removing quiet from the boot options I see that it runs through the init scripts and then hangs-I can boot to command line by putting "rw init=/bin/bash" but don't know what to do once I get there to diagnose the problem-The system is primarily a fileserver/XBMC htpc-The system was running for several months before this restart so I can't identify a specific change as the problem unless it's because...-Recently I made changes to all of the disks by switching from JBOD to software raid (with mdadm)

View 4 Replies View Related

Debian Configuration :: INIT Not Running A Script?

Mar 23, 2011

I have a firewall script setup to run in rc2.d. There is a K99 for it and then an S99. The problem however, is that it isn't being called. No errors, no logs, nothing. The symlinks in /etc/rc2.d point to /etc/init.d/script, but nothing ever happens on boot or shutdown. I can manually do /etc/init.d/script start and it will start just fine, including printing a line that it is starting. What's going on here? The permissions are the same as the other scripts in the init directory, so I doubt that is a problem.

View 4 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 :: Updated Postfix Not Running After Transferring Over Users From Older Postfix?

Feb 25, 2011

I recently moved over user from an old box running postfix(v 2.0.16) over to rhel 6 running postfix (v mail_version = 2.6.6). ive tried to make sure all the files are of correct permissions and that the main.cf file is configured corectly. However there is something wrong as when i run postfix: service postfix server i get no error but when checking the status:service postfix status i get: master dead but pid file exists Looking into /var/log/mailog i find this line being the issue:

Feb 25 16:24:39 puny1 postfix/master[3517]: fatal: fifo_listen: create fifo public/pickup: Permission denied

I gather this is a file permission issue and ive tried to make sure the public folder in /var/spool/postfix is correctly set but still no avail.

View 2 Replies View Related

Ubuntu :: 9.10 Not Running Startup Scripts

Jun 8, 2010

I've installed ssh, as well as a script of my own, in /etc/init.d, and I've added both of them to the startup sequence (I've tried both the "rcconf" graphical utility, and "update-rc.d"). The installation utilities seem to be working just fine and report success, and everything seems to be where it should be, but on reboot, my startup scripts don't start up.

I have these scripts running on MANY machines withOUT the GDM/Gnome Desktop running. On this ONE machine, though, I have Gnome running.

Is there some fundamental difference between the GUI Desktop's startup sequence and the text-mode-only startup sequence?

View 4 Replies View Related

Ubuntu :: 10.04 Startup Scripts Not Running?

Jul 21, 2010

I have just installed a fresh Ubuntu 10.04 x64 installation. I have a script that I am added manually that is not starting on startup like it should, but I also have 2 normal startup scripts that are not running either. Apache2 and mt-daapd are 2 applications that I installed with sudo apt-get install apache2 mt-daapd. Neither application is starting during bootup. I tried making sure there were in the rc.d by using update-rc.d but both said that they already existed. Another script (mount_data) I made myself also has been added and is executable like it should be that isn't running at bootup.

View 9 Replies View Related

Ubuntu :: Bmcapture Using 100% CPU Running On Startup

Nov 7, 2010

I noticed my computer seemed to be running excessively noisily, and upon checking into System Monitor, I noticed that my CPU was being held constantly at 100%. None of the processes listed on the process tab seemed t be responsible, but I found this thread which gave me the 'top' command.

Running it, I found a process running as root called 'bmcapture' that was responsible for the CPU use. Trying to 'kill' it failed; using 'sudo kill' gave me no error messages, but the process continued to run. This carried on through a restart.

I then proceeded to shut the computer down and leave it off for a minute. When I booted up again, the CPU was still running at full, and using 'top' I determined the same process was responsible; however, 'sudo kill' successfully killed it this time, with apparently no adverse effects.

My question is if anyone has any information about what 'bmcapture' is, whether its harmful (aside from the obvious issue of it using full CPU) or malicious, and if there's any way to stop it running on startup, because as it is I'm having to manually 'sudo kill' it every time I turn my computer on to stop it eating my CPU alive.

View 3 Replies View Related

Security :: 100's Of "apache-init-server" - Keeps Running Out Of Memory

Sep 25, 2010

I have a VPS that has 512MB of ram. I'm using it as a mail/web server. It keeps running out of memory. I know amavis/clamav are memory hogs, but I checked my ps aux and found 100's of instances of "apache-init-server" running. I killed them all, and they keep spawning back. What could be causing this. I've never seen this on a webserver before. OS: CentOS 5.5

View 10 Replies View Related

Ubuntu :: 10.04 - Make MySQL Running On Startup?

May 3, 2010

I run Ubuntu 10.04. For some reason, MySQL won't start on startup. How do I make it run on startup? I installed it by installing LAMP using tasksel and did everything according to: [URL]. Also, I have another problem: When I try to start/stop/restart mysql in the terminal, the terminal will not give me any prompts after entering the command. E.g., after entering "sudo service mysql start", nothing will happen. Even after waiting for 30min, nothing happens.

View 9 Replies View Related

Ubuntu :: Running An Application Or Script At Startup

Oct 13, 2010

I want to launch qiv upon startup to show a series of photos in slideshow fashion (this will be the sole purpose of this particular laptop). I tried adding the command via System->Preferences->Startup Applications but this does not produce the desired result. In fact, the slide show doesn't even start.

View 5 Replies View Related

Ubuntu :: Gnunetd Process Running At Startup?

Dec 5, 2010

I installed Gnunet (a secure P2P program) on Ubuntu 10.10 using Ubuntu software centre but had difficulties getting it to work so removed it. However, the gnunetd process loads at startup. It is only visible when typing 'top' in the console and not in the system monitor list of processes.gnunetd --version tells me that it is 0.8.1b sudo apt-get remove gnunetd tells me 'unable to locate package' why the process loads and how to remove it? I can kill it in the console but would like a way of getting rid of it permanently.

View 2 Replies View Related

Ubuntu :: Conky Script Not Running At Startup

Feb 1, 2011

I am trying to run a script that runs at startup. I have followed directions found at this Website: [URL]. Everything works except the script which consists of two lines.

#!/bin/bash
sleep 30 && conky ;
I changed the file permissions to be executed and named it .conky-startup.sh.

Then I went to System>Preferences>Startup Applications and created a new entry that points to my script file. When I restarted my system, Conky didn't start. If I try to run the file from Nautilus or the Terminal, nothing happens.

View 6 Replies View Related

Ubuntu :: Startup Applications Not Running Anymore?

Apr 13, 2011

Im not sure why they aren't working - but my startup applications are not running at boot. They run fine from terminal.

I have a startup application for Xchat and the command is just xchat (which works fine from terminal) but it isn't loading at? - I have checked and im not running in safe mode or anything like that - just the standard ubuntu desktop).

Unrelated Question:

Is there a 'global' i.p address I can use to represent all devices on my LAN - so I can mass whitelist in firestarter?

View 5 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 :: Running Evolution In The Background At System Startup?

Jul 3, 2010

How do I make Evolution run at system start-up in the background and check my in-box?

View 1 Replies View Related

Ubuntu Servers :: Running Script As Root On Startup?

Jul 29, 2010

I am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?

View 1 Replies View Related

Ubuntu :: Endless Script Running At Startup Safe?

Aug 7, 2010

Sometimes I need remotely connect to my computer, but my router gains IP address dynamically. So I wrote simple script which gains my router IP and send me email:

Code:
#!/bin/bash
function send_mail {
echo $1 | mutt -s "New IP" myemail.com
}
old_ip=
while true; do
new_ip=`wget www.whatismyip.com/automation/n09230945.asp -O - -q`
if [ -n "$new_ip" ] && [ "$new_ip" != "$old_ip" ];
then
old_ip=$new_ip
send_mail "IP changed, sending new IP: $new_ip"
fi
sleep 5m
done

I need it to run at system startup. When I'm adding it to .bash_profile bash path/resolveIP & I'm not getting any mail. In case of bash path/resolveIP (without &) I'm getting mail, but I guess it will never get to the next command in .bash_profile. So I put my script in /etc/init.d directory, but I don't know is it okay to have endless script there????

View 1 Replies View Related

Fedora :: Running A Command At Startup?

Mar 12, 2010

I'm trying to get synergy+ to work on Fedora 12 on start up. I'd like to be able to log into Fedora using my keyboard and mouse through synergy+. I've tried adding the line
Code:synergyc <localipaddress> at the end of the /etc/rc.local file but I still can't use my keyboard and mouse to log in. I've also tried adding the lineCode:su <username> -c "synergyc <localipaddress>" to /etc/rc.local but it still doesn't work. Just to clarify, I do have synergy+ working on Fedora but I need to start it after logging in on each reboot by switching my keyboard over to the other computer.

View 2 Replies View Related

General :: Running A Program On Startup?

Aug 9, 2011

I have a program I have made, and I would like it to run as soon as the system is finished booting. I am using Ubuntu Mini Remix to recreate a LiveCD/USB stick. After booting, it drops me to a command line where I can enter "sudo qct" and it will run my program (which is called qct, and it has to be run as root).I want this to be automated.Instead of going to a command line, I want it to run the program itself at that point. How would I go about doing this? I have read many tutorials about scripting but I cannot seem to get it to work.

View 11 Replies View Related







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