Closed mdavidsaver closed 5 years ago
Is that good and complete enough to go into the official Debian distribution?
I mean in terms of python packaging guidelines, required documentation and manpages etc.
This is an open question for me. I think it could be without too much more work.
I'd first like to establish that this code fills a functional need. If so, I'll finish the necessary documentation.
I have been trying to sell your latest additions (that don't require port numbers for local access) as the way to avoid the extra configuration. How well does that go with these tools? Not really, does it?
How well does that go with these tools? Not really, does it?
It appears in the generated conserver config (conserver understands unix sockets), and the 'prtelnet' wrapper which looks up a tcp port using the /control file.
There are several pieces to this work:
These are based around a common set of conventions related to systemd:
These are based around a common set of conventions related to systemd:
I was getting these confused
Any update on this pull request? The feature would be quite useful.
systemd integration of procserv along the same lines as my sysv-rc-softioc. With the adoption of systemd by both debian and redhat, I think this work might reasonably be included with procServ itself. If this isn't desirable, I can maintain it as a separate package.
Provides some helpers for creating/maintaining procserv instances managed as systemd new-style daemons.
Locations:
/etc/procServ.conf /etc/procServ.d/*.conf
or
~/.config/procServ.conf ~/.config/procServ.d.*.conf
These contain blocks like:
systemd generators generate unit files from this.
These can be managed by hand and/or with the 'manage-procs' CLI utility.
Instances defined in /etc are managed by the global systemd instance. Those in ~/.config are managed by this user's systemd instance.
In addition a script 'prtelnet' takes an instance name, looks up the port and exec 'telnet'.
An example conserver config is provided to go along with "manage-iocs write-procs-cf".
Two options for handling log files are provided: rsyslog and "manual". The rsyslog option also includes logrotate.
This is intended to be a complete, integrated, solution. However, several pieces are usable in isolation. eg. handling of log files is independent of the config files and scripts described above except for the daemon name beginning with "procserv-".
I've include only rsyslog config as this is the default for debian 8. I'd like to get syslog-ng config as well.
An open question for me is the suitability of depending on python 3 for the scripts. At the moment they run with both 2.7 and 3.4. Requiring >=3.4 would allow the embedded "copy" of shlex.py to be dropped.