Iceweasel Boot Issue

Ive tried asking on various forums - rasppi etc.

I am running a startup script to start iceweasel on bootup. it opens 2 tabs with pages for internal sites.
Only issue with the device is that it wont be rebooted correctly it has an on and off usb power supply that will kill the power.
I am wondering if there is anything that i can do or put in a startup location or a crontab that on any bootup after power cutting out that it stops the process and then restarts the process/webpages.

Any help would be appreciated


Similar Content



Automatically Starting A Python Script On Startup After Reboot...

I am running a headless Linux 17 media/NAS server. I have setup and tested the plexconnect script and it works. My only issue is that I can't figure out how to get the script to automatically run on startup. I tried using the GUI, but it doesn't seem to work.

To get it to work, I have to open terminal and navigate to the directory:

/usr/local/lib/PlexConnect/

Then run: sudo ./PlexConnect.py

The window has to remain open in order to keep running (which isn't an issue as it's headless). I'd just like to not have to login and start it each time the power goes out, or is rebooted.

I tried editing the crontab file and adding the following variations with no luck:
@reboot python /usr/local/lib/PlexConnect/PlexConnect.py
@reboot /usr/local/lib/PlexConnect/PlexConnect.py

Neither has worked. Does anyone know what I'm doing wrong?

Thanks!

Dropbox Not Running At Startup

I'm running Debian wheezy. I have Dropbox installed, but it won't run on startup. I downloaded their CLI script dropbox.py, and if I use

Code:
python dropbox.py start

then it starts. I'm trying to use that to get it to run at startup. I have tried editing .profile, and crontab, but it doesn't work and I don't know what else to try. Is it a permissions issue? (I tried making dropbox.py executable and adding python to visudo) or do I need to have some other command to run it at startup?

I appreciate the help!

Centos 7 Startup Script

I have a Centos 7 server which setup by previous system administrator , when this server startup , it will start some service eg. apache , mysql etc, but I could not find the startup script at /etc/rc.local /etc/rc.d/rc.local or /etc/rc.d/init.d , would advise which path will be the startup script keep ?

Thanks

Iceweasel Proxy Setting - Does This Mean I Don't Need Proxy Server?

I am using Iceweasel with debian wheezy. I have thought about using a proxy server for anonymity on the net.
However, on the Iceweasel Advanced Settings, it shows that there is a proxy setting already being used.

Does this mean I don't need to use a proxy server if I use Iceweasel?
Can anyone please advise about linux methods of preserving anonymity?

Boot Messages Should Remain Hidden At Bootup Even After Pressing Any Keystrokes

hello,
I have a CentOS system and I want to prevent the boot messages from appearing during bootup. I have added the quiet option in grub.conf file which hides the boot messages, but after pressing the esc key or the arrows it shows up again.

Is it possible to hide it permanently?

Or not show the boot logs when the basic(esc or arrow) keys are pressed but assign a different set of key combos which when pressed, then only the boot messages should be visible.

Thankyou

Please Help Me With System Startup From Linux DVD

Again my friends I am having trouble,
Have Toshiba Tecra 64-bit 500gb disk 4gb ram running Windows 7 professional it has Intel core i5 processor.
I burned iso file of DVD LinuxMint Rebecca Cinnamon to DVD.
When I restart the system with the DVD inserted it immediately opens in Windows 7.
Then I pressed F1 to change the boot order to USB ODD.
Then I re-started several times to no avail.
When I press F1 to select the boot device it only gives me the Windows 7 option.
I know the disk is good because I checked the files it should contain and they are there.
Help from anyone is greatly appreciated.
Best regards to all of you.

?? How To Auto Mount Logical Volume Before Transmission-daemon Starts At Start Up

I have been using an old computer to download my torrents and this has been my usual routine:

1. Press the power button.
2. Connect to the computer through Putty
3. Log in
4. Gain su privileges

Startup Commands:
Code:
/etc/init.d/transmission-daemon stop
apt-get update
mount -t ext4 /dev/vgTransmission/lvTransmission /mnt/transmissionVault
/etc/init.d/transmission-daemon start

Shutdown Commands:
Code:
/etc/init.d/transmission-daemon stop
umount /dev/vgTransmission/lvTransmission
shutdown -h now

I was wondering if there is a way to configure a computer to automatically mount a logical volume “before” the transmission-daemon starts at boot up (note my first Startup Command).

I think the instructions here are related to what I want to do, but I want to get some advice before I attempt to do anything dangerous:
http://tille.garrels.be/training/tld...#sect_04_02_04


My perfect scenario would be:

Startup Routine:
1. Send WakeOnLan magic packet to computer to turn it on.
2. Computer boots up, mounts the transmissionVault logical volume
3. Wait 10 seconds to ensure that the logical volume has finished mounting
4. Start transmission-daemon

Shutdown Routine:
Send WakeOnLan magic packet to turn off computer, i.e.: Execute “shutdown -h now”
The shutdown command should include:
1. Stop transmission-daemon
2. Wait 10 seconds to ensure that transmission-daemon has finished shutting down
3. Umount transmissionVault logical volume




Recently the Ethernet port of my transmission box has stopped working, so I went ahead and swapped the motherboard with another old motherboard, added a few hard drives, installed a fresh copy of Debian, and re-created the LVM logical volume for transmissionVault. I pretty much have a fairly stock system running at the moment.

Running a headless 3.2.0-4-amd64

Power Event Driver

I was wondering if someone can help me make a driver, that monitors power events in a linux os. I found some code on the net, that claims to do this, and I started a project with this, but I'm missing some classes that I can't find.
This is the code I found:
http://lxr.free-electrons.com/source/include/linux/pm.h
and the class I can't find, is this one: disabled features.h
I also don't know how to send something back, when a power event occurs, such as shutdown, hibernate, sleep, restart or logoff.
I tried to read the code, but I couldn't understand it, so I would really appreciate it , if someone could tell me where can I add some return statement, so that when one of these events occur, the user knows.
Any help will be greatly appreciated.
Thanks.

Best Way To Run Two Interdependent Scripts

Hi All,

I have two scripts, the aim of these two scripts is, to check whether a particular script is running or not, if it wont runs, then throw a mail.

How i Achieved this output is, I wrote first script.

I created an infinite while loop which performs below steps

1. It creates a touch file
2. Triggers the script which needs to be monitored if its working or not.
3. Removes the touch file.

If the second step fails, then the remove file command will not happen and the script will stuck there itself.

I created an another script which checks the creation time of the touch file and if it is more than ten minutes, it means the second step in the first script is hanged, which also means that particular script is not working.

So if the creation time is more than 2 minutes the second script will throw a mail.

Below are the two scripts.

Code:
#!/bin/ksh



userid="chansd"

filename="/apps/log/check.txt"

while true ;do
touch $filename
pass=`/apps/eDMZ/call_st.ksh $userid`
sleep 20
rm $filename
done

Below script checks the file creation time and throws email if it is older than 2 minutes
Code:
#!/bin/ksh


filename="/apps/log/check.txt"

if [ -f "${filename}" ]
then
if test "`find $filename -mmin +2`"
then
echo "script is not working ! Please act on it" | mail -s "Script  is not working" Example@mail.com
fi


else

        exit 1

fi


What im going to do is

1. I am going to run the first script in background so it runs forever.
2. I am going to run the second script in cron forevry 5 mins to check the file creation time.

3. So if the first script hangs . I will kill the process using process id and after the issue resolves with the inner script, I will run the main script again.

I am new to Linux, Please let me know if this approach will work as expected.

Kill -3 Pid > /tmp/process.txt Not Working?

Hi All,
I am trying to get a dump of a process using kill and it doesn't look to be working, can someone explain what I am doing wrong?

Code:
systemctl start snmpd.service

Code:
pgrep snmpd
4233

Code:
kill -3 4233 > /tmp/snmp_pid.txt

OR

Code:
kill -SIGQUIT 4233 > /tmp/snmp_pid.txt

Yes the process quit's which is fine but there is no output from the process in /tmp/snmp_pid.txt.

Can someone please explain?

Thanks