-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
25 lines (19 loc) · 657 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# recreating files in case of empty volumes attached
if rpm -V cobbler | grep -q missing; then
yum reinstall -q -y cobbler
elif rpm -V cobbler-web | grep -q missing; then
yum reinstall -q -y cobbler-web
elif rpm -V tftp-server | grep -q missing; then
yum reinstall -q -y tftp-server
elif rpm -V dhcp | grep -q missing; then
yum reinstall -q -y dhcp
fi
/usr/sbin/apachectl
/usr/bin/cobblerd
cobbler sync > /dev/null 2>&1
pkill cobblerd
/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
#enable tftp in /etc/xinet.d/tftp if needed
/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
/usr/bin/cobblerd -F