2017-04-06 18:08:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# [1] Remove service target (boot)
|
|
|
|
sudo rm /usr/sbin/sgca;
|
|
|
|
|
|
|
|
# [2] Disable service
|
2017-05-05 12:33:58 +00:00
|
|
|
sudo systemctl stop sgca.service;
|
2017-04-06 18:08:45 +00:00
|
|
|
sudo systemctl disable sgca.service;
|
|
|
|
|
|
|
|
# [3] Remove service unit
|
|
|
|
sudo rm /lib/systemd/system/sgca.service;
|
|
|
|
|
2017-05-05 12:33:58 +00:00
|
|
|
# [4] Remove log file
|
|
|
|
sudo rm /var/log/sgca;
|
|
|
|
|