Hi everyone,
I would like to run a script at startup.
I put the script in the /etc/init.d folder, but it does not get called.
I think I have to register it somehow (modprobe maybe?) but I can't remember how to do that.
Any suggestions?
Here's the script (it's just to turn off the very very very annoying ambient light sensor of my laptop)
I have a very simple (for now) startup script which I want to run whenever the machine boots.
Under RHEL6, I can put the script into /etc/init.d/paxjob and then create a link from the runlevel directory:
cd /etc/rc5.d
ln -s ../init.d/paxjob S99paxjob
The, on reboot, my script runs fine.
However, trying to do the same under SLES11 is not working.
I have a script that runs on startup, but it wont launch a application in chroot.
#!/bin/sh
/usr/sbin/chroot /root/chrootdir/ /bin/sh -c "lighttpd -f /etc/lighttpd.conf -m /lib"
echo "script activated" >> /log/www.log
the log file is written/appended on startup, but the lighttpd server is not starting.
Running the script when the box is running works fine and launches lighttpd.
Hi. I need to launch one script during startup, but don't know what is the exact sequence to get this done like where to copy(rc*.d or /etc/init.d or /etc/init) my script, if needed how to give some special execution permissions etc. I tried copying one small script file with only an echo in /etc/rcS.d and got that print in /var/log/boot.log file.
Per various tutorials I've done the following:
created a file called ftpserver.py in /home/root/
created a file in /etc/init.d/ called ftpserver that looks like this"
#!/bin/sh
python /home/root/ftpserver.py
Upon creation, I ran the following (to make it executable, apparently)
root@beaglebone1:/etc/init.d# chmod +x ftpserver
But it doesn't appear to be running on startup.
Hi all, im pretty new to unit/redhat 6.2
I am trying to load a script upon startup of my redhat 6.2
(instance in ec2 AWS if someone cares)
I want everytime when instance starts (after stop/reboot) a script i build to launch.
I have just installed No-IP on a brand new Ubuntu 12.04 install. The program starts fine when I start it from the CLI, but if I try to make this startup script work it won't start.
I got this script from their install instructions:
#! /bin/sh
# .
I am trying to get a simple script to run automatically at startup. A friend told me to do this but it did not work.
Hello,
I'm having a problem getting a program to run from /etc/init.d/rc.local. I can run my script manually once the system has booted.