17 lines
No EOL
319 B
Bash
Executable file
17 lines
No EOL
319 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ -e /etc/init.d/cronosagent ]
|
|
then
|
|
service cronosagent stop
|
|
update-rc.d -f cronosagent remove
|
|
rm -f /etc/init.d/cronosagent
|
|
fi
|
|
|
|
if [ -e /etc/systemd/system/cronosagent.service ]
|
|
then
|
|
systemctl stop cronosagent
|
|
rm -f /etc/systemd/system/cronosagent.service
|
|
systemctl daemon-reload
|
|
fi
|
|
|
|
exit 0 |