2015-10-24 18:25:33 +05:30
|
|
|
#!/bin/sh
|
2018-07-03 20:32:50 +05:30
|
|
|
# executed when service is taken down
|
2015-10-24 18:25:33 +05:30
|
|
|
|
|
|
|
service=${PWD##*/}
|
|
|
|
file_ipconf="$service.ipconf"
|
|
|
|
dir_ipconf="/var/run/service/fw"
|
|
|
|
|
|
|
|
# Reconfigure network with this interface disabled
|
|
|
|
echo "Finish: deconfiguring"
|
|
|
|
rm "env.out"
|
|
|
|
rm "$file_ipconf"
|
|
|
|
rm "$dir_ipconf/$file_ipconf"
|
2018-07-03 20:32:50 +05:30
|
|
|
svc -u fw
|