Software :: Possible To Run Startup Script Only (not On Shutdown)?
Jun 9, 2010
I'm trying (& failing) to write a script in /etc/init.d that only operates on boot up but NOT on shutdown. The program I want to run does not accept any parameters. This works
Code:
#!/bin/bash
test -f /var/www/html/moveit || exit 0
. /var/www/html/moveit
exit 0
but on shutdown and startup.
This doesn't
Code:
#!/bin/bash
test -f /var/www/html/moveit || exit 0
case "$1"
start)
. /var/www/html/moveit
;; top)
;; *)
esac
exit 0
either at startup or shutdown.
View 8 Replies
ADVERTISEMENT
Nov 12, 2010
Running Lucid 10.04 in place of XP on my old Packard Bell Imedia has been good apart from the random freeze-ups that often prevent booting or stall the shutdown process. Today I think I solved it!? It appears that my wireless PCI adapter (ZyXel G-302 v3) was causing the problem. Ubuntu had installed a default driver which seemed to work OK; but I thought I'd try installing the Windows XP driver from my original ZyXel install disk as an experiment. I used ndiswrapper, got the XP driver installed and my freeze-ups have gone (touch wood).
View 3 Replies
View Related
Sep 9, 2010
I have a Toshiba Laptop Satellite L355-S7905 Intel Celeron Processor 585 @ 2.16 Ghz, Mobile Intel GL40 Express Chipset. 4GB of Memory, 160 GB HD. Tri-boot: Windows 7, Unbutu 10.04 and Fedora 12.
Here is what happened: I had a hard/forced shutdown while using Ubuntu 10.04. Some warning text flashed on the screen before it went blank and I could not read it. Now when I turn on my laptop it freezes on the Toshiba set up screen. I can not go to the F2 setup, I can not go to the F12 boot seqence and I can not use F8 safe mode. Also the ESC button had no effect.
I have tried turning it on with the Win 7 cd in the drive but nothing. The same when I put my Ubuntu 10.04 cd in the drive, nothing. My guess is that the forced shutdown messed up the bootfile/grub order. The harddrive runs for a few seconds then stops. Should I attack the problem from a Windows view point or a Ubuntu view point?
View 8 Replies
View Related
Jun 21, 2010
I'm preparing a vitualization server (host) with VirtualBox. This machine, running Debian, is intended to run in HeadLess mode, without GUI.
I've got some guests VMs running. But I was wondering about the best way to start this guests VMs on startup and shut them down kindly when host is shutdwon.
Virtual Machines run under non-root user. I was thinking about making a script in /etc/init.d/ in order to start certain VMs and to stop every VM running when system is halted. Is this really the simplest and most secure approach?
Actually I couldn't find very much on this subject in user manual or googlin' around.
View 3 Replies
View Related
Jan 24, 2011
on startup/shutdown i get following message "vbox guest (something) failed
what does that mean ?
opensuse 11.3 gnome
View 3 Replies
View Related
Apr 8, 2011
Running Opensuse 11.4 (but had same problem on 11.3). During startup and shutdown, the text messages are displayed using a very large font (characters are > 1 cm high). How can I specify the font and font size it uses ? Presumably it is doing a bad job of detecting the monitor (its a Samsung SyncMaster P2250). Which config file contains a suitable entry, and what is the entry ?
View 6 Replies
View Related
Jan 16, 2010
For the last month, when starting up or shutting down my laptop under Linux, I would get graphical corruption. Startup has an colour inverted, grainy rendition of what should be displayed while shutdown has a red background with all the text replaced by grey rectangles.
At the very least this affects Fedora, Ubuntu and Xubuntu. Windows is not affected. Outside of startup/shutdown the system is fine.
View 2 Replies
View Related
Feb 10, 2010
Just curious if it is possible to schedule a complete system shutdown and start up?
My box with ubuntu server on it is only used as an ssh/proxy server, so I would like save on energy costs and add a layer of security by completely shutting it down during the hours I do not use it.
View 5 Replies
View Related
Mar 4, 2011
i have a RAMdisk set up on my desktop with a hidden folder of stuff in it; but i want to know is it possible for me to set ubuntu to copy the files to another directory on shutdown, and copy back again on startup?
View 2 Replies
View Related
May 2, 2011
The startup and shutdown displays are a series of vertical black and white lines, and the text displayed on them appears as more or less white blobs. Otherwise, the displays when 11.04 is running are fine, but this startup looks so naff it would be nice to change it so that the diplays can be read. I would hate to demonstrate Ubuntu to someone and have to explain such a display.
View 7 Replies
View Related
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
Aug 17, 2009
I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora
Code:
#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1
[code]....
View 4 Replies
View Related
May 11, 2011
I just updated to kernel 2.6.35.13-91.fc14.x86_64, and I'm now having a weird issue where my computer will hang during startup and shutdown unless I move the mouse around.
While moving the mouse, it will boot up or shut down normally. Once i stop moving the mouse around it will hang (until I begin to move the mouse again).Once fully booted it acts fine..
View 13 Replies
View Related
Jun 17, 2011
I've recently upgraded to 11.04.Till now, I could select an option to make the open folders on shutdown, to restore on startup.There was an option to restore running applications
View 5 Replies
View Related
Dec 10, 2010
I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .
Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?
View 1 Replies
View Related
Feb 5, 2011
Recently I installed vncserver (tigervnc) on my desktop. Ever since my computer refuses to shutdown normally. At shutdown the following message pops up: Quote: System policy prevents stopping the system when other users are logged in Then I have to enter the root password to shutdown. If I stop vncserver before, the computer shuts down normally.
[Code]....
View 2 Replies
View Related
Jun 30, 2010
when my pc boots and shuts down my monitor goes into 'input out of range' mode for a bit between the gui and the text only phases of boot/shutdown.is there a way to fix this? or where to start troubleshooting?also, when it shuts down it hangs after coming back to the text only part
View 4 Replies
View Related
Apr 22, 2010
I cannot locate shutdown log for Linux shutdown to check various activities carried out during shutdown. I can view Startup Log which is availble on console>Applications>System Tools>System Logs.
I have included Shutdown/Startup in dbora, so that Oracle 10gR2 Shutdown/Startup will be automated during OS Shutdown/Startup.
I want to check Shutdown log because Oracle Shutdown was not running, as from $ORACLE_HOME/shutdown.log contains no entries, where as startup log contains latest startup details.
That means here 2 issues are there. One, I want to locate OS Shutdown Log and the other being Why Oracle Shutdown not getting executed.
View 2 Replies
View Related
Jun 20, 2010
I cant shutdown without running sudo shutdown. When I try to use the default gnome shut down it takes me back to the logon screen. Fresh install today and I've had the same problem on other installs.
View 9 Replies
View Related
Sep 7, 2010
Ubuntu will randomly pop up the shutdown menu and then shutdown.It seems to happen when im in firefox and typing and it has been difficult to replicate. I dont think it is a temp issue since watch sensors shows temmp of 40-50C. Someimtes it happens every minute someimtes i can go 10min without it happening.
Dell Inspiron 1525
ubuntu 10.04 (only os on system)
View 3 Replies
View Related
Dec 10, 2010
looking for a command that shutdown/reboot my ubuntu just same as process that happened when I press shutdown buttonIn fact I need to close all programs that are running and then PC shutdown (that happened when I press shutdown button).
View 9 Replies
View Related
Mar 12, 2011
I did a live upgrade from 11.3 KDE and observe a following issue.When I press the shutdown button on the laptop it initiates the shutdown and shuts down fine but after a significant delay of time (something like 30 seconds). When I click the shutdown button in KDE it initiates the shutdown instantly. This was not the case in 11.3 where the shutdown worked the same regardless of the method that triggered it
View 6 Replies
View Related
Mar 30, 2010
I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.
When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."
View 5 Replies
View Related
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
Feb 26, 2010
I'm new to Ubuntu and have spent several days trying to make a few simple alterations to my Myth 9.10 installation. My biggest task was to get the MCE "power" and "start" buttons working, which they now are - sort of.
The problem is with the shutdown command that the power button activates seems to be different to the shutdown command from the taskbar shutdown menu i.e. when I switch off the computer with the remote it restarts with the "recovery" menu as it wasn't shutdown properly. Same thing happens with the shutdown command from a terminal window. Shutting off from the desktop menu is fine.
View 9 Replies
View Related
May 23, 2010
I just upgraded to the 10.04 and everything works just fine as before (except for skype but that really doesn't matters as it has already been 3 years I'm using ubuntu and I managed to get it to work only once, for miracle I believe ^^). The only real issue I have is this: when I start up my laptop, after the log-in, no sound will be heared as the "speaker" volume level in alsamixer is set to 0; if I raise it from the terminal running alsamixer (as I don't know any other alternative) everything plays just fine, but the next time I boot I do have to do it all over again... So, how can I change the default startup level of the "speaker" in alsamixer?
PS: by the way I do have the very same issue with the screen luminosity but the other way round as is always starts at maximum brightness and I can't manage to get it to start at the minimum, as it did before. At least reducing the backlight if far more quick but a couple of times I forget it and the battery lasted something like half an hour
View 9 Replies
View Related
Nov 30, 2010
can anyone tell me the difference between "sudo shutdown now" and "sudo shutdown 0"
i know that "sudo shutdown 0" will shutdown the system in 0 seconds. but when i run sudo shutdown now my system goes into the maintenance mode?? what is maintenance mode??
View 2 Replies
View Related
Jul 5, 2011
I'm running Fedora 15 64bit, with Gnome3 and an extension which puts the Shutdown link back where it should be the problem is that 95% of the time, when I shutdown the system it just hangs.If I press ESC then I just get a flashing cursor and pressing it again returns me to the Fedora logo on the blue background. There is no HDD activity and I then have to perform a hard shutdown (press and hold the power button for 5 seconds) which is not ideal.
View 11 Replies
View Related
Mar 31, 2011
I am using opensuse 11.4 (was recently updated from 11.3). When I try to turn off my computer using kde (Leave->shut down) I receive a gray screen and system can 'stay' in that situation for days.
where to look for log files as well as some command line commands that can be used to force gui(kde-plasma-whatever you call it) to shut down or restart?
View 1 Replies
View Related
May 2, 2010
In 10.04 when I go to shutdown it brings me to the login window and I try to shutdown from there and it does nothing. Any work arounds for this bug?
View 9 Replies
View Related