[root@es_master supervisord.d]# cat ic_message_rpc_41001.ini
[program:ic_message_rpc_41001]
command = /etc/init.d/ic_message_rpc start
numprocs=1
process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
startretries=3
user=root
redirect_stderr=true

[root@es_master supervisord.d]# cat  /etc/init.d/ic_message_rpc
#!/bin/sh
#chkconfig: 2345 80 05
#description: ic_message_rpc

case $1 in
start)
    cd /data2/wwwroot/ic_message_api
   /usr/local/php/bin/php  index.php rpcmsg/message_rpc
    ;;
*)
    ;;
esac

 

 

[root@es_master supervisord.d]# cat ic_send_message_41002.ini
[program:ic_send_message_41002]
command = /etc/init.d/ic_send_message start
numprocs=1
process_name=%(program_name)s_%(process_num)02d
autostart=true
autorestart=true
startretries=3
user=root
redirect_stderr=true

[root@es_master supervisord.d]# cat /etc/init.d/ic_send_message
#!/bin/sh
#chkconfig: 2345 80 05
#description: ic_send_message

case $1 in
start)
    cd /data2/wwwroot/ic_message_api
   /usr/local/php/bin/php  index.php rpcmsg/send_message
    ;;
*)
    ;;
esac

 

相关文章:

  • 2021-07-06
  • 2021-10-10
  • 2021-08-11
  • 2021-04-14
  • 2022-02-05
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2021-05-30
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案