assistant --autostart: First any daemons that are already running, which might be left over from a previous login session and so unable to use the ssh agent of a new login session.
This commit is contained in:
parent
0609788fbe
commit
1f35141aff
3 changed files with 35 additions and 0 deletions
|
@ -91,6 +91,12 @@ autoStart startdelay = do
|
|||
where
|
||||
go haveionice program dir = do
|
||||
setCurrentDirectory dir
|
||||
-- First stop any old daemon running in this directory, which
|
||||
-- might be a leftover from an old login session. Such a
|
||||
-- leftover might be left in an environment where it is
|
||||
-- unavble to use the ssh agent or other login session
|
||||
-- resources.
|
||||
void $ boolSystem program [Param "assistant", Param "--stop"]
|
||||
if haveionice
|
||||
then boolSystem "ionice" (Param "-c3" : Param program : baseparams)
|
||||
else boolSystem program baseparams
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue