# HG changeset patch
# User jfp <jf.pieronne@laposte.net>
# Date 1685518919 -7200
#      Wed May 31 09:41:59 2023 +0200
# Node ID 1a8a6841ebc1b7edd61c7cf5e167494a13040629
# Parent  d03093c5ce7a1243d2a661fe2cbee4fe86e038de
Use program name as default process_name, add NLA0: as default for command

diff --git a/supervisord.py b/supervisord.py
--- a/supervisord.py
+++ b/supervisord.py
@@ -1001,9 +1001,9 @@
                 )
 
             name = sn.split(':')[-1].upper()
-            process_name = config[sn]['process_name']
+            process_name = config[sn].get('process_name', name)
             autostart = config[sn].getboolean('autostart', False)
-            command = config[sn].get('command')
+            command = config[sn].get('command', 'NLA0:')
             image = config[sn].get('image', 'SYS$SYSTEM:LOGINOUT.EXE')
             stdout_file = config[sn].get('stdout_file', 'NLA0:')
             stderr_file = config[sn].get('stderr_file', 'NLA0:')