lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1720 - nss-pam-ldapd/pynslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1720 - nss-pam-ldapd/pynslcd



Author: arthur
Date: Sun Jul 15 21:20:35 2012
New Revision: 1720
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1720&view=revision

Log:
set the pynslcd process name if possible

Modified:
   nss-pam-ldapd/pynslcd/pynslcd.py

Modified: nss-pam-ldapd/pynslcd/pynslcd.py
==============================================================================
--- nss-pam-ldapd/pynslcd/pynslcd.py    Sun Jul 15 15:02:15 2012        (r1719)
+++ nss-pam-ldapd/pynslcd/pynslcd.py    Sun Jul 15 21:20:35 2012        (r1720)
@@ -284,6 +284,12 @@
     # read configuration file
     cfg.read(config.NSLCD_CONF_PATH)
     # FIXME: set tls_cacertdir, tls_cacertfile, tls_randfile, tls_ciphers, 
tls_cert, tls_key options immediately after parsing config
+    # set process title
+    try:
+        import setproctitle
+        setproctitle.setproctitle('pynslcd')
+    except ImportError:
+        pass
     # set a default umask for the pidfile and socket
     os.umask(0022)
     # see if someone already locked the pidfile
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/