Apparently, systemd doesn't like that the pf_ring.service and cluster.service files have executable bit set and keeps complaining in /var/log/messages. This is just a warning but it spams the file. Example: var/log/messages-20170521:May 21 07:28:18 localhost systemd: Configuration file /etc/systemd/system/pf_ring.service is marked executable. Please remove executable permission bits. Proceeding anyway.
The executable bit is set probably due to my source-control system, and probably not a problem that many will suffer from. Still, you can consider changing command "cp" to "install -m 644" as follows: In file package/rpm/pfring.spec.in: From: cp $HOME/PF_RING/package/etc/systemd/system/pf_ring.service $RPM_BUILD_ROOT/etc/systemd/system cp $HOME/PF_RING/package/etc/systemd/system/cluster.service $RPM_BUILD_ROOT/etc/systemd/system To: install -m 644 $HOME/PF_RING/package/etc/systemd/system/pf_ring.service $RPM_BUILD_ROOT/etc/systemd/system install -m 644 $HOME/PF_RING/package/etc/systemd/system/cluster.service $RPM_BUILD_ROOT/etc/systemd/system Thanks, Amir On Wed, May 17, 2017 at 2:20 PM, Amir Kaduri <[email protected]> wrote: > Thanks for the prompt reply. > Amir > > On Tue, May 16, 2017 at 12:09 PM, Alfredo Cardigliano > <[email protected]> wrote: >> Hi Amir >> >>> On 16 May 2017, at 10:44, Amir Kaduri <[email protected]> wrote: >>> >>> Hello, >>> >>> I assume that I miss a minor detail, but I'll appreciate explaining >>> how the following files are deployed in the right place on the machine >>> when the pf_ring installation rpm is installed: >>> 1. /usr/local/pfring/kernel/pf_ring.ko: >>> In source file ../package/rpm/pfring.spec.in line 37, the copy >>> command is commented out. >> >> DKMS build and install the module when installing the package, I added some >> comments to the spec. >> This is where the module should be installed by dkms: >> >> /usr/lib/modules/`uname -r`/weak-updates/pf_ring.ko >> >>> 2. /etc/systemd/system/pf_ring.service: >>> The file itself appears in the source code under >>> ../package/etc/systemd/system/pf_ring.service, >>> but it doesn't appear in source file ../package/rpm/pfring.spec.in >> >> Added to the spec (it was installed for ubuntu only) >> >> Alfredo >> >>> >>> Thanks, >>> Amir >>> _______________________________________________ >>> Ntop-misc mailing list >>> [email protected] >>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc >> >> >> _______________________________________________ >> Ntop-misc mailing list >> [email protected] >> http://listgateway.unipi.it/mailman/listinfo/ntop-misc _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
