← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 562194] Re: need create .pid file on Unix system

 

conventional method of complete applications in UNIX systems is the
transfer PID command KILL. If it is stored in the .pid file - is all
very simple.

#!/bin/bash
PID=/var/run/adchpp.pid
/bin/kill -SIGINT `/bin/cat $PID`

No record PID in the .pid file makes it difficult to process management
hub, especially when running multiple copies of the hub.

[root@adc3 soft]# netstat -l -n -p
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:1411                0.0.0.0:*                   LISTEN      31863/adchppd       
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      31854/adchppd

-- 
need create .pid file on Unix system
https://bugs.launchpad.net/bugs/562194
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.

Status in ADCH++: New

Bug description:
need create .pid with PID  on Unix system

adchpp -p /var/run/adchpp.pid

it need for Initd scripts and run multiple copies of a hub on system.





References