Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
nfsen
> nfsen-create-piddir.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nfsen-create-piddir.patch of Package nfsen (Revision 35)
Currently displaying revision
35
,
show latest
--- libexec/NfSenRC.pm.orig 2014-12-10 18:28:28.103766683 +0100 +++ libexec/NfSenRC.pm 2014-12-10 18:32:40.478694852 +0100 @@ -187,6 +187,11 @@ } # End of StopCollector sub NfSen_start { + if ( ! -d "$NfConf::PIDDIR" ) { + mkdir($NfConf::PIDDIR,0755); + my $uid = getpwnam $NfConf::USER; + chown $uid, 0, $NfConf::PIDDIR; + } if ( ! -d "$NfConf::PIDDIR" ) { print "PIDDIR '$NfConf::PIDDIR' not found! NfSen installation problem!\n";