更新 cns.sh
This commit is contained in:
parent
dbc548e345
commit
5019f046e8
1 changed files with 3 additions and 1 deletions
4
cns.sh
4
cns.sh
|
|
@ -6,11 +6,13 @@
|
||||||
#Stop cns & delete cns files.
|
#Stop cns & delete cns files.
|
||||||
Delete() {
|
Delete() {
|
||||||
systemctl disable cns.service
|
systemctl disable cns.service
|
||||||
rm -f /etc/init.d/cns /lib/systemd/system/cns.service
|
chkconfig --del Acns
|
||||||
|
/etc/init.d/Acns disable
|
||||||
if [ -f "${cns_install_dir:=/usr/local/cns}/cns.init" ]; then
|
if [ -f "${cns_install_dir:=/usr/local/cns}/cns.init" ]; then
|
||||||
"$cns_install_dir"/cns.init stop
|
"$cns_install_dir"/cns.init stop
|
||||||
rm -rf "$cns_install_dir"
|
rm -rf "$cns_install_dir"
|
||||||
fi
|
fi
|
||||||
|
rm -f /etc/init.d/cns /lib/systemd/system/cns.service /etc/rc.d/rc5.d/S99cns /etc/rc.d/S99cns /etc/rc5.d/S99cns
|
||||||
}
|
}
|
||||||
|
|
||||||
#Print error message and exit.
|
#Print error message and exit.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue