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
ADVERTISEMENT
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
Nov 8, 2010
I've been trying to add applications to my "Startup Applications" menu. Most of the time, they "stick," but sometimes simply disappear, either immediately or after a variable length of time (sometimes more or less immediately, sometimes after several restarts, or anywhere in between). I've noticed that, when they stop booting, their entry disappears from ~/.config/autostart, but changing permissions on the affected files (e.g., removing write access) doesn't seem to help.
Any suggestions? Re-adding the same things over and over gets frustrating after a while, and I can't figure out why these entries are disappearing.Currently running Ubuntu 9.10 on an HP Pavilion dv6000 with an Intel Centrino Core Duo processor and 2 GB of RAM.
View 9 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
Feb 27, 2011
So lately I've been wanting to mess around with lightweight window managers. So installed both awesome and scrotwm from synaptic. Apparently these window managers need a startup script in order boot some applications on startup.
I've tried a few, but everytime I change the file *desktop, these desktop environments disappear from the options on GDM.
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
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
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
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
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
Apr 15, 2010
I have a HTML <form> with two (input type text), and a submit button, after I enter the two values and click submit button, the x.php appear successfully but the HTML <form> still remain in the x.php page,how to hide the form from the x.php page
View 7 Replies
View Related
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
Apr 30, 2010
last night i install ubuntu on my pc while installin there was a windows reporting a grub installing error it saids " grub cant be installed here" and it gives me the choice to select where to install it,the problem is that i have 2 HD one of 80GB and the other is 160GB in the 80 gb HD i have windows xp already isntalled and in the 160 GB HD i was installing ubuntu, i choose to install the grub in the 160 GB HD and now when i turn on my pc i can only access ubuntu is like if my HD with Win xp just disappear
View 1 Replies
View Related
Aug 28, 2010
Presuming ubuntu was dual-booting alongside windows with GRUB, and I formatted the ubuntu partition, what would happen at startup; would I still be able to access windows, and would the option to boot ubuntu just disappear?
View 7 Replies
View Related
Aug 8, 2010
I have two optical drives (not SATA) that previously showed up as /dev/hda and /dev/hdb. No longer. I see no mention of them in fstab and catting all the /dev/dvd /dev/cd... /dev/sr.. turns up nothing. If I place a disk with info in the drive nothing appears anywhere I can see (not in dmesg).
K3b tells me no devices found. wodim tells me Detected CD-R drive: /dev/sr1 wodim: Cannot do inquiry for CD/DVD-Recorder. Errno: 5 (Input/output error), test unit ready scsi sendcmd: fatal error CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 40s (These are not SATA drives.) I noticed rebooting will show drives if there is media in there. However, that disappears after a while as well. Then inserting and reinserting cdroms gives no messages in dmesg.
View 2 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
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
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
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
Jun 20, 2011
When i work in Ubuntu on a dual boot system with a shared NTFS data-partition where Windows is hibernated, and then reboot and continue working in Windows from the hibernated sesion, strange things happen. Files disappear, files that i worked on suddenly have the content of another file.
View 5 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
Jun 24, 2011
I upgraded to Fedora 15 using preupgrade after I failed to upgrade or install it clean through DVD. But, after the preupgrade process finished, I can't boot my system even into init mode 3. I am able to boot into the init mode 1 and can see that many of the packages have been upgraded to fc15. I tried to start the x server from init mode 1. My nVidia screen even popped up. But after that the screen went totally blanked.
View 6 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 23, 2010
After a kernel update action, it seems that I'm unable to boot a system anymore. First off, after installing the kernel, and trying to shutdown to boot to the new kernel, the system replied with INIT: no more processes left in this runlevel. Kernel update was performed from to the following versions 2.6.18-128.el5.img -> 2.6.18-164.11.1.el5.img . The system is a VMWare virtual machine. When trying to reboot, the system passes GRUB, starts initializing and after loading the dm it stops for a few seconds at the message Waiting for new devices, show the following message:
Setting up new root fs no fstab.sys, mounting internal defaults. After this and a few other messages, it displays : INIT: version 2.85 booting INIT - No more processes left in this runlevel INIT: Id "x" respawning too fast : disabled for 5 minutes And then it just hangs. This is the output of my inittab:
[code]...
The system boots into failsafe, but still shows the errors mentioned.
View 5 Replies
View Related
Nov 7, 2010
since yesterday that my ubuntu does not boot. This message appears...Target filesystem doesnt have /sbin/init,No init found. Try passing init=bootarg. (initramfs)
I boot ubuntu-live from a usb flash drive, but i can't mount the partition where i have installed ubuntu /dev/sda6. Either run fsck command. this error appears.... Filesystem mounted or opened exclusively by another program?
View 9 Replies
View Related
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
Apr 6, 2011
Click here for solution... http://ubuntuforums.org/showpost.php...99&postcount=3So I just realized how stupid I was being trying to run these commands for a NTFS partition... so I searched and used Gparted to check sda2, and also ran
Code:
root@ubuntu:/home/ubuntu# sudo ntfsfix /dev/sda2
Mounting volume... OK
[code]....
View 2 Replies
View Related