takama / daemon

A daemon package for use with Go (golang) services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

service still running when i "remove"

zuoRambo opened this issue · comments

as you can see,i use subcommand "remove" to remove the daemon service,but the application didn't stopped, and there will be some trouble when type "status" to check status.
c2977fd7-be15-43d9-a059-6daa293389c6

10072 rworkspace/golang  » ps axu|grep 7618|grep -v grep
root             7618   0.0  0.1 573410164  10740   ??  Ss    8:53PM   0:00.27 /Users/rambone/rworkspace/golang/tp-scoring-system

Hi,
Yes, it's happen if you try to remove running service (without "stop" command before).
Ok, I think, need to have"stop" command during remove the service.

P.S. As a temporary solution, use:

  1. Install service
  2. Stop service
  3. Remove service

thanks

@takama thanks,i get it

Anyway, You were right to best serve of the command "Remove". It should be correct way and should not remove running service or just stop it automatically.