Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Stopping TFTP server..."
- pkill in.tftpd
- sleep 5
- echo "Stopping DHCP daemon..."
- pkill dhcpd
- sleep 5
- echo "Restore DHCP daemon original config file..."
- #original config must be in current dir.
- CURDIR=`pwd`
- cp "$CURDIR/dhcpd.conf.orig" /etc/dhcpd.conf
- echo "Stopping samba server"
- /etc/rc.d/rc.samba stop
- chmod 644 /etc/rc.d/rc.samba
- sleep 5
- #stop NFS
- echo "Stopping NFS..."
- ip netns exec provns /etc/rc.d/rc.nfsd stop
- chmod 644 /etc/rc.d/rc.nfsd
- chmod 644 /etc/rc.d/rc.rpc
- sleep 5
- echo "Complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement