Fixed bug causing dependencies not to appear in environment when
autostarted
This commit is contained in:
parent
6e9bad77e4
commit
644bf9f16c
1 changed files with 11 additions and 2 deletions
13
lsmd.cl
13
lsmd.cl
|
@ -36,6 +36,7 @@
|
|||
(15 (format nil "Cannot stop the program ~A (not in environment)" args))
|
||||
(16 (format nil "Cannot start the program ~A (program already running)" args))
|
||||
(17 (format nil "Cannot stop the program ~A (program not started)" args))
|
||||
(99 (format nil "Unknown error"))
|
||||
))
|
||||
)
|
||||
|
||||
|
@ -97,9 +98,17 @@
|
|||
(cond ((uiop:process-alive-p nfo)
|
||||
nil)
|
||||
(t
|
||||
(start progs env req))))
|
||||
(multiple-value-bind (rets nenv) (start progs env req)
|
||||
(format t "~A" nenv)
|
||||
(cond ((not (string= "0" rets))
|
||||
(return-from start rets)))
|
||||
(setf env nenv)))))
|
||||
(t
|
||||
(start progs env req)))))
|
||||
(multiple-value-bind (rets nenv) (start progs env req)
|
||||
(format t "~A" nenv)
|
||||
(cond ((not (string= "0" rets))
|
||||
(return-from start rets)))
|
||||
(setf env nenv))))))
|
||||
|
||||
(let ((nfo (uiop:launch-program (getf progline :start)
|
||||
:error-output (or (getf progline :stderr) (concatenate 'string (uiop:getenv "HOME") "/.var/log/" progr ".log"))
|
||||
|
|
Loading…
Reference in a new issue