Hi folks,
So I have an uninstall script which removes the app. I'm trying to remove the init script by issuing the command:
/etc/init.d/geoip-shell-init disable
Looking in /etc/rc.d/
, I see that this removes the K* symlink (which AFAIK is responsible for stopping the service). However the S* symlink remains. Is there a bug or am I doing something wrong?
I tried to look in the docs but all I can find is the "disable" command which is supposed to remove the S* symlink, but it doesn't.
Here is the init script:
#!/bin/sh /etc/rc.common
START=100
STOP=01
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /bin/sh "/usr/bin/geoip-shell-mk-fw-include.sh"
procd_close_instance
}
service_triggers() {
procd_add_reload_trigger "firewall"
}
Here are the exact commands I'm entering:
$ ls /etc/rc.d/ | grep geoip
K01geoip-shell-init
S100geoip-shell-init
$ /etc/init.d/geoip-shell-init disable
$ ls /etc/rc.d/ | grep geoip
S100geoip-shell-init