Success with start-stop-daemon and mono-service2?

前端 未结 4 1027
情深已故
情深已故 2020-12-28 10:49

Has anyone had any success using start-stop-daemon and mono-service2 together? I\'ve been fighting this for a few days now and have gotten various bits to work, but have ha

4条回答
  •  长情又很酷
    2020-12-28 11:40

    do_stop()
    { 
    
    test -f $PIDFILE && kill `cat $PIDFILE` && return 2
    
     start-stop-daemon --stop --quiet --verbose --oknodo --retry=0/30/KILL/5\ 
    
    --exec mono-service2
    
     [ "$?" = 2 ] && return 2
    
     # Many daemons don't delete their pidfiles when they exit.
    
     rm -f $PIDFILE
    
     return "$RETVAL"
    
    }
    

    So it works, I think it just because you can't stop a process by the command "start-stop-daemon" i'm learning to use mono now,your invitation help me very much.thank you. my english is poor,forgive my half-baked english.

提交回复
热议问题