#18417: unable to remove stunnel if it's already stopped
----------------------+------------------------
 Reporter:  xuefer    |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+------------------------
 opkg remove stunnel
 Removing package stunnel from root...
 You can force removal of packages with failed prerm scripts with the
 option:
         --force-remove
 No packages removed.
 Collected errors:
  * pkg_run_script: package "stunnel" prerm script returned status 1.
  * opkg_remove_pkg: not removing package "stunnel", prerm script failed

 after a few minutes tracking, i can see it invoke default_prerm
 //usr/lib/opkg/info/stunnel.prerm remove
 default_prerm is in /lib/functions.sh, that invoke "/etc/init.d/stunnel
 stop"

 the problem is: the /etc/init.d/stunnel stop function does not return
 success if pid is not found. simply change [ ] check to if check and the
 bug is gone

--
Ticket URL: <https://dev.openwrt.org/ticket/18417>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to