##// END OF EJS Templates
Fixed: Clean files/etc/rc.local
drtyhlpr -
r129:01693129d80e
parent child
Show More
@@ -1,23 +1,14
1 #!/bin/sh -e
1 #!/bin/sh -e
2 #
2 #
3 # rc.local
3 # rc.local
4 #
4 #
5 # This script is executed at the end of each multiuser runlevel.
5 # This script is executed at the end of each multiuser runlevel.
6 # Make sure that the script will "exit 0" on success or any other
6 # Make sure that the script will "exit 0" on success or any other
7 # value on error.
7 # value on error.
8 #
8 #
9 # In order to enable or disable this script just change the execution
9 # In order to enable or disable this script just change the execution
10 # bits.
10 # bits.
11 #
11 #
12 # By default this script does nothing.
12 # By default this script does nothing.
13
13
14 if [ ! -e /var/cfengine/policy_server.dat ] ; then
15 while ! ping -c 1 -q zcu.cz; do sleep 2s; done
16 rm -f /var/cfengine/ppkeys/*
17 /var/cfengine/bin/cf-key
18 /var/cfengine/bin/cf-agent --bootstrap cf.civ.zcu.cz
19 /var/cfengine/bin/cf-agent -Kf update.cf -D FORCE_update
20 /var/cfengine/bin/cf-agent -Kf update.cf -D FORCE_update
21 fi
22
23 exit 0
14 exit 0
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant