mirror of http://192.168.10.4:8099/sane/dpkg.git
30 lines
659 B
Plaintext
30 lines
659 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
systemctl daemon-reload
|
||
|
|
||
|
sleep 3
|
||
|
|
||
|
test -h /etc/systemd/system/multi-user.target.wants/lanxumwebscanserver.service
|
||
|
if [ $? -eq 0 ];then
|
||
|
rm -rf /etc/systemd/system/multi-user.target.wants/lanxumwebscanserver.service
|
||
|
fi
|
||
|
|
||
|
test -h /etc/systemd/system/lanxumwebscanserver
|
||
|
if [ $? -eq 0 ];then
|
||
|
rm -rf /etc/systemd/system/lanxumwebscanserver
|
||
|
fi
|
||
|
|
||
|
test -e /lib/systemd/system/lanxumwebscanserver.service
|
||
|
if [ $? -eq 0 ];then
|
||
|
rm -rf /lib/systemd/system/lanxumwebscanserver.service
|
||
|
fi
|
||
|
|
||
|
test -d /opt/lanxumwebscanserver/
|
||
|
if [ $? -eq 0 ];then
|
||
|
rm -rf /opt/lanxumwebscanserver
|
||
|
fi
|
||
|
systemctl stop lanxumwebscanserver.service
|
||
|
systemctl daemon-reload
|
||
|
|