Created attachment 325772 [details] systemd service unit file for the Nessus daemon Hello there! The current version of Nessus is 5.0.1, however the latest version supported by the nessus-bin ebuild is 4.4.1. I would like to request an update. From what I can see all one has to do here is change the version number on the existing ebuild file, therefore I am not attaching an updated ebuild to conserve server storage space. Then again, I have attached a basic systemd unit file which appears to work fine with this version of nessus. Let me know if you need any more information.
+*nessus-bin-5.0.1 (06 Oct 2012) + + 06 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> +nessus-bin-5.0.1.ebuild: + Version bump wrt bug #437376 + Ebuild for new version added to tree. Can anybody from systemd team review attached file? I am not familiar with systemd at all...
(In reply to comment #1) > Can anybody from systemd team review attached file? I am not familiar with > systemd at all... Well, it is fine if `nessus-service --quiet` doesn't fork. But you probably want to drop the 'Type=simple' line, it is the default.
I believe it should be okay - nessus-service spawns nessusd but it does it via clone() instead of fork(), and more importantly it never terminates while the latter's running. In fact, a quick look at the output of strace run on nessus-service suggests it does the following: - installs custom signal handlers for its SIGINT, SIGTERM and SIGHUP, with the former two shutting things down (as expected) and the latter causing a configuration reload; - writes its own PID to /opt/nessus/var/nessus/nessus-service.pid; - clones itself and execs nessusd in the clone. NB. It is entirely possible to launch nessusd directly, however it makes it impossible to use SIGHUP to reload configuration.
Created attachment 326190 [details, diff] nessus-bin-5.0.1-r1-ebuild.patch Thanks for comments, Michał. Can you review my patch for nessus-bin-5.0.1.ebuild, please? I am not sure, that i have used systemd eclass properly. If all is ok, i will commit new revision of ebuild among with attached service file
(In reply to comment #4) > Created attachment 326190 [details, diff] [details, diff] > nessus-bin-5.0.1-r1-ebuild.patch > > Thanks for comments, Michał. Can you review my patch for > nessus-bin-5.0.1.ebuild, please? I am not sure, that i have used systemd > eclass properly. If all is ok, i will commit new revision of ebuild among > with attached service file No, it's not correct. You always install both files, USE=systemd has different semantics.
+*nessus-bin-5.0.1-r1 (12 Oct 2012) + + 12 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> -nessus-bin-5.0.1.ebuild, + +nessus-bin-5.0.1-r1.ebuild, +files/nessusd-bin.service: + Revision bump, adding systemd service file wrt bug #437376