http://git.community.i2p/PurpleI2P/i2pd/src/commit/02c51b098010573c680be91109a82e6d409854e0/DaemonLinux.cpp
" /var/run " : i2p : : util : : filesystem : : GetDataDir ( ) . string ( ) ; pidfile . append ( " /i2pd.pid " ) ; pidFilehandle = open ( pidfile . c_str ( ) , O_RDWR | O_CREAT , 0600 ) ; if ( pidFilehandle = = - 1 ) { LogPrint ( " Error, could not create pid file ( " , pidfile , " ) \n Is an instance already running? " ) ; return false ; } if ( lockf ( pidFilehandle , F_TLOCK , 0 ) = = - 1 ) { LogPrint ( " Error, could not lock pid file ( " , pidfile , " ) \n Is an...