General :: Startup Script On Reboot Using ID (abcdef)

Mar 2, 2011

I have set up a script in /etc/rc2.d to start up on reboot. The script needs to run on reboot using ID: abcdef. I placed an su - abcdef on top of the script and it didn't work. I tried the script manually running the script using root and my ID switched from root to abcdef and the script never ran. I am using Redhat 5.5

View 5 Replies


ADVERTISEMENT

General :: Startup Script - Getting IPTables To Survive Reboot

Aug 22, 2010

I am trying to follow the info on Getting IPTables to survive a reboot. Everything works until I reboot but the script does not run when linux starts. The article says to create a script so ifupdown loads these rules on boot:

Code:
echo "#!/bin/sh" > /etc/network/if-up.d/iptables
echo "iptables-restore < /etc/firewall.conf" >> /etc/network/if-up.d/iptables
chmod +x /etc/network/if-up.d/iptables it put what I think is a symlink in if-upd but iptables still does not survive reboot.

View 2 Replies View Related

Ubuntu :: Startup Applications Not Saving After Reboot?

May 11, 2011

using ubuntu 10.4, have set a custom command to open my browser to a page using the following in System -> Preferences -> Startup Applications

Code:
chromuim-browser -kiosk http://wallboard

this works, but only for the next restart, any subsequent restart, and this 'application' has vanished from the list...

how do i add this 'application' as a persistent entry, not just for the next restart.

View 5 Replies View Related

Ubuntu Multimedia :: VLC Stream At Startup In Case Of PC Reboot?

Jul 7, 2011

I've got Xubuntu 11.04, VLC 1.1.9. I'm working on some kind of streaming server and I would like to start VLC stream at startup in case of PC reboot (for instance after blackout).

I've made script to do that and append that script to init.d and use upadate-rc.d. VLC don't work correctly because of some network issue (host unreachable, cannot make raw udp socket) but network and all its parts work correctly (for sure!!).

View 5 Replies View Related

Ubuntu Installation :: Install Desktop On Top Of Server - Reboot It Freezes During Startup ?

Feb 15, 2011

For some reason my disc I burned for ubuntu desktop 10.10 freezes when I get to the ubuntu logo with the 5 dots. I am able to install ubuntu server just fine.

I tried to install desktop on top of server using sudo aptitude install ubuntu-desktop and then whenever I reboot it freezes during startup.

I think it might be my swap partition. I recall seeing a blip of an error talking about "press C to skip or M to start maintenence" or something like that. It never stayed on the screen long enough for me to read it.

View 2 Replies View Related

Debian :: Fighting With Making Running A Script At Startup Only But Not At Shutdown/reboot?

Nov 30, 2010

So I found many methods on google, but no one works. It seems that this one is THE Debian way.

Code:
### BEGIN INIT INFO
# Provides: mystartupscript

#[code]...

View 5 Replies View Related

General :: Embedded Reboot Crash - Error Executing The Reboot Command

May 4, 2011

I'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.

View 2 Replies View Related

General :: Will Not Reboot After Install (Arch) - -bash: /sbin/reboot: Input/output Error

Oct 7, 2010

I am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.

View 6 Replies View Related

General :: [FYI] "last -f <old Wtmp> -x Reboot Shutdown" Incorrect For Last Reboot And Shutdown?

Mar 25, 2010

Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.

The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration

Code:

shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.

When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.

The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.

So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown

Code:

[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]

The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.

View 1 Replies View Related

Red Hat / Fedora :: Identify Reboot Source Or Cause Of Reboot?

Feb 16, 2011

last -a shows server rebooted, how to identify the source or cause of reboot? thx reboot system boot Wed Feb 16 08:52 (02:0 2.6.21.7-2.fc8xen

View 2 Replies View Related

General :: Last Uptime After Reboot?

Dec 3, 2010

I want to know if there is a way to know the uptime for a server after a reboot process, I need that information for a statistic, but I forgot to take the uptime before reboot the server, so I am looking for that information after the server is power on.

View 1 Replies View Related

General :: What Really Does 'reboot -f ' Command Does

May 17, 2010

What is the exact way 'reboot -f' command operates? How does it differ from regular reboot/shutdown? Is it proper to restart pc using 'reboot -f', if not why? The reason why I'm asking this: After installing live-distros via USB, I usually do this 'reboot -f' for restarting.

View 1 Replies View Related

General :: Can't Reboot Server

Jul 2, 2011

I login to my server and when I open new console I get:

-bash: /etc/profile: Input/output error
-bash: /root/.profile: Input/output error

and nothing is working I tried to reboot or top command but not working also I can't open SFTP the server says The server has rejected the SFTP request.

View 2 Replies View Related

General :: Reboot From Windows With Grub?

May 6, 2010

I have machine with Windows and Linux with GRUB, only with remote access. Is there any way to chage default OS in grub from windows? I know how to achieve it from linux, something like

echo "savedefault --default=2 --once" | grub --batch; sudo reboot

should work. Is there any way to achieve it from windows?

View 1 Replies View Related

General :: Sustain Data After Reboot?

Feb 1, 2011

i want to sustain some contents in a particular directory say /usr/bin/dir1 after reboot

View 5 Replies View Related

General :: Changes To /etc Files Revert Changes After Reboot?

Nov 22, 2010

I've been messing around with a Verizon Hub trying to see if I can get it to register with my Asterisk server. I have been able to telnet into the phone with the root username. I can change files in every other folder on the device except in the /etc folder. I have tried mounting many different ways, changing file permissions but everytime I change the file and reboot it goes back to its default configuration.

View 2 Replies View Related

General :: Possible UUIDs Changing Every Reboot?

Aug 1, 2011

I have installed CrunchBang, then I moved the /tmp and /var to different partitions (I like to put these on reiserfs) the reason I did it after the install is because CrunchBang's installer doesn't give me the options to create reiserfs partitions during install (but does recognise reiserfs as I can manually mount them). Also these two partitions are logical.Anyway I have Windows 7 and Ubuntu 10.04 already installed and working fine but CrunchBang always changes the UUIDs of /var and /tmp when I reboot. Is that even possible I have also tried using the old method of /dev/sd** but of course that gets changed as well.

View 3 Replies View Related

General :: Need To Be Able To Set Cron To Reboot System Every 5 Min

Jul 19, 2010

I have a friend who needs a script to reboot a system every 5 min... not sure how to set cron to do this every 5 min.

View 1 Replies View Related

General :: ASM Will Not Start Automoatically After A Reboot

Nov 3, 2010

Running close to a go live date of 11/10/10 and need to have this fixed. DBA is pointing to the OS which is RedHat Enterprise Release 5.3. with Oracle RAC 10G

Oracle works fine it just won�t start up automatically after a reboot. After a reboot a person with root access has to increase the number of semaphores and then oracle will start and function. The next time the machine is bounced the same issue will arise and the semaphores need to be increased again by hand. Every time the machine is bounces the semaphores need to be increased by hand. This is not normal for a Unix machine. Semaphores are not part of the oracle install, it is a kernel parameter on Unix machines. Eventually after several reboots the semaphore parameter will be too high for the box to function. Once the semaphores have hit their peak, we reset them back to the original value and the whole process starts over again. This is a Unix build issue that has only surfaced on the production machines. The DAS development machines have the exact same oracle build and do not have this issue.

View 1 Replies View Related

General :: Get Black Screen After Reboot?

Mar 6, 2011

I just installed Ubuntu and after the restart all I get is a black screen. Sounds like the program booted up but I can't see any thing.

Using a Gforce 9400 vid card.

View 1 Replies View Related

General :: Can't Force Reboot From Program?

Jul 7, 2011

running Linux release 2.4.19-uc0, build #511 embedded on a device. It is stripped down to a very minimal configuration and so many of the normal commands are not present.I'm trying to force a reboot from an application I've got running. I've tried the following:

system("shutdown -r");
or
sync();

[code]....

View 4 Replies View Related

General :: E2fsck For Only One Volume On Reboot?

Feb 9, 2011

I know if I do a shutdown -rF now, it will perform an e2fsck on all my volumes with the -y switch. But if I just want to check one of the volumes rather than all of them, and have it use the -y switch so it will automatically answer yes to everything, how can I do that?I'm using RHEL, and have a huge volume I need to run a check on, and I dont want to sit there for the next 24 hours hitting the Y key every time it finds a problem ;-)

View 1 Replies View Related

General :: How Do You Clear Reboot History

May 24, 2011

I don't mind a few lines of reboots, but this is getting rather long:

How can I clear (or reduce) the history that comes up when ssh to my host?

View 9 Replies View Related

General :: How To Bypass FSCK At Reboot

Jul 23, 2010

I have a server that said a volume was dirty and to check it at reboot, so someone did a shutdown -rF now. Only problem is the other volumes are HUGE and it will take forever, which I cant have happen. The volume with the trouble is non-critical so I could take it offline and check it that way if i can get this to boot quickly. How can I do that if its going to auto check every volume on reboot now?

View 2 Replies View Related

General :: Detect Ip Address From Last Reboot Done?

Feb 22, 2011

How would i detect the ip address from where the reboot command been given to linux host.

My linux host details are as below.

Code:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release: 5.2
Codename: Carthage

View 1 Replies View Related

General :: Iptables Not Loaded At Reboot?

Dec 26, 2010

I ran iptables save but on a server reboot it just loads the default firewall config. how I can get it to load and flush my custom iptables script on reboot?

View 1 Replies View Related

General :: Save Mac Address Even When Reboot?

Aug 15, 2010

I need to save mac address (that I already changed it) even when I reboot.

View 3 Replies View Related

General :: Get Radius To Start After A Reboot ?

Sep 30, 2010

I have installed FreeRadius to a Debian Linux server.

I have configured an account called Support to run the Radius as I didnt want Root to be the user to run this.

I want Radius to start up automatically after the system is rebooted but I don�t know how to do this. I am new to Linux so please bare with me. If the system is rebooted, is it possible for the Support account to be logged in automatically? Is there a script I can create to automatically login the Support account? This may not be secure but it has been requested. Also the main question is after a reboot can the Radius be configured to automatically start without the need for someone to login? So if the system is rebooted and then goes back to login prompt, can the Radius then be running?

I have had a good search about scripts but with my limited knowledge it isnt too easy.

So far Ive read it says to create a script in /etc/init.d which Ive done and named start-my-radius.sh I think Ive made It execuatable by chmod 777, if thats right?

The script looks like this:

But I dont know if thats even right? The radiusd is located in the /usr/local/sbin/ and the radacct and radius.log is located in / usr/local/var/log/radius

Some stuff I have read says it needs to link into /etc/rc.d but there isnt a rc.d directory, I have other rc directories which are rc1.d rc6.d.

After reading it also said something about using rc.radiusd which will automatically start Radius after a reboot, but again I cannot understand exactly what I need to do.

Let me know if I am on the right track? Will the start-my-radius.sh script work after the system is rebooted without someone actually login and how do I get it to work?

View 1 Replies View Related

General :: Get Back To Grub Menu Without Reboot

Aug 4, 2010

I have two separate Linux installations on my system which I can access from grub. Is there a way to get back to the grub menu to access the other system without having to reboot?

View 2 Replies View Related

General :: Using Ksplice To Patch Kernel Without Reboot?

Feb 22, 2011

Got a few multiuser systems for which scheduling an occasional reboot is a major PITA. Wondering if the ksplice solution is as painless as it sounds or there are tradeoffs.

View 9 Replies View Related







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