Questions tagged [rc.local]
31 questions
1
vote
1 answer
Unison on bootup
I have unison running thru a config file by default. In here it applies the wait=watch function so it syncs automatically. But I wanted to run unison on boot, but I haven't been able to do this.
There were some other links, but they didn't gave me…

Lars Behrens
- 53
- 1
- 6
1
vote
1 answer
rc.local, call commands sequentially (one after finishing the other)
I was expecting that in rc.local, If say I call program P1 in one line and then P2 in the following line, P2 would only be executed after P1 (on which it depends for successful execution). This is the behavior in bash scripts. However, after booting…

juanmirocks
- 113
- 4
1
vote
2 answers
How to run a shell script on my amazon instance when it bootsup?
I have my amazon instance, i need to add a shell script to its rc.local file so that the shell script executes when i boot my instance.
how to set permission to my shell script in rc.local file?
if i execute as shown below , my script does not…

pri_newbie
- 13
- 1
- 1
- 3
1
vote
1 answer
Using rc.local to run a command on boot
I am running CentOS and want to execute a command when the system is booted. Reading other posts on ServerFault the recommend file to use is rc.local. However, rc.local exists in both /etc/ and /etc/rc.d/. Which file should I use, and what is the…

Justin
- 5,328
- 19
- 64
- 84
1
vote
2 answers
Process in rc.local does not seem to run -- where to see?
I want to run a process in rc.local (Ubuntu Natty) but I am having trouble determining if it has run. I added
/bin/sleep 10
/usr/bin/killall PassengerWatchdog
/bin/echo "Killall returned with code $?"
The file has the execute bit set. The script…

Tom Harrison Jr
- 575
- 1
- 6
- 16
1
vote
2 answers
RHEL Need To Boot Without rc.local
I am running RHEL 5.5. I edited my rc.local file, but I made a bad change because now when I try to boot RHEL, I get to my normal background but the login prompt does not appear now. Is there a way I can kick off the login screen manually or boot…

GavinWoods
- 145
- 1
- 2
- 8
0
votes
1 answer
How to get node app running on Amazon EC2 instance to start on reboot?
So I have Node/Express app running on an Amazon Linux Ec2 instance (VPC). The path to my node app is as follows /home/ec2-user/server/server.js
If I run which forever I get
~/.nvm/versions/node/v6.11.5/bin/forever
If I run the following command the…

jdog
- 1
- 1
0
votes
1 answer
Ubuntu-Server Does Not Present Logon After Executing rc.local Script
UPDATE: I completely commented out the rc.local script and the problem still persists. This time though, it seems like the boot process has made it further than before. It's still getting hung though. I don't have enough rep to post a photo. But it…

B-Dawg
- 101
- 2
0
votes
1 answer
rc.local only runs first command
I use /etc/rc.local to autostart two services.
sh /home/ubuntu/osrm.sh || /bin/true
sh /home/ubuntu/photon.sh || /bin/true
|| /bin/true is used to ensure that it always succeeds even if the shell script fails.
My problem is that, only the first…

Chris
- 173
- 1
- 6
0
votes
1 answer
Not getting GUI after rc.local execution in Centos6.6
This is CentOS 6.6 server with GUI. I have place my startup commands in /etc/rc.local The service running on this server are Docker and Nginx. So I have put Container start up command with port mapping in rc.local.
The Docker Containers are…

nikhil singh
- 1
- 1
0
votes
1 answer
On a Debian 7.5 rc.local won't be run at boot
I am struggling to figure out why rc.local won't be executed at boot time.
The file itself is executable, it is called from /etc/rc2.d
Also the file when from command line won't return any errors.
Any ideas what else to check to figure out why is…

Alex Flo
- 1,761
- 3
- 18
- 23
0
votes
1 answer
ubuntu shell(sh) script missing some line
I create some script for a static route, called "my.rc.route" and i put it on /etc/rc.local, so everytime the server get restarted the script shall run after all the startup process.
I feel a bit strange to find there were some line on my script…

Ta Coen
- 240
- 4
- 15
0
votes
1 answer
fwbuilder/iptables manually scripted + autogenerated rules at startup?
Fedora 11
Our previous IT-guy setup iptable rules on our firewall in a way that is confusing me and he didn't document any of it. I was hoping someone could help me make some sense of it.
The iptables service is obviously starting at startup, but…

Jake Wilson
- 8,814
- 29
- 97
- 125
0
votes
1 answer
nftabels rules and rc.local
i have problem like this
this is my iptables rules
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination (( my first server ))
iptables -t nat -A PREROUTING -j DNAT --to-destination (( my second server…

E M A
- 1
-1
votes
1 answer
autostart rc.local 2>&1 redirect, 'open /dev/tty: No such device or address'
I'm trying to execute this command with rc.local:
wget http://address/file -P /root/ 2>&1 | stdbuf -o0 awk '/[.] +[0-9][0-9]?[0-9]?%/ { print substr($0,63,3) }' | whiptail --gauge "Progress" 6 78 0
Above command shows percentage of download some…