diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-03-07 21:39:29 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-03-07 21:39:55 -0400 |
| commit | 3269dd8ffd621fa977cb108e0e6ad2671a7b6836 (patch) | |
| tree | 70e686ef46056984f27c0eccc9551253f08b3a46 /doc | |
| parent | c98285d957865aadaac3190543be1a1b3ae16476 (diff) | |
| parent | 3137c266b0082cf33d0cf747b2a2ea0929ca2d92 (diff) | |
Merge branch 'master' into wip
Diffstat (limited to 'doc')
4 files changed, 64 insertions, 1 deletions
diff --git a/doc/forum/Weird_SSH_issue/comment_8_b5ba54711a869076fdf78f81f2f5c70d._comment b/doc/forum/Weird_SSH_issue/comment_8_b5ba54711a869076fdf78f81f2f5c70d._comment new file mode 100644 index 00000000..f5110479 --- /dev/null +++ b/doc/forum/Weird_SSH_issue/comment_8_b5ba54711a869076fdf78f81f2f5c70d._comment @@ -0,0 +1,24 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 8""" + date="2016-03-06T23:47:58Z" + content=""" +I modified spin', adding this before its final ssh: + + async $ createProcessForeground $ proc "sleep" ["500"] + +This more or less replicates the problem reliably; the remote propellor +runs but nothing gets displayed for 500 seconds until the sleep process +is done. At which point the whole buffered output appears. Use cat instead +and it'll hang forever. + +Of course, that means `ps fax` shows propellor with sleep and ssh as +child processes. If only ssh shows as a child process and nothing else +when the problem naturally occurs, then that's a different problem +than what I was able to replicate. + +Anyway, this seems too fragile to leave like this even though +nothing run on the way to a ssh should run for very long. +So, I'm making the ssh be run forced to the foreground, which will +certianly avoid all such problems. +"""]] diff --git a/doc/forum/Weird_SSH_issue/comment_9_b66bfe7d8414639adc66874d7e94cabf._comment b/doc/forum/Weird_SSH_issue/comment_9_b66bfe7d8414639adc66874d7e94cabf._comment new file mode 100644 index 00000000..f81a809f --- /dev/null +++ b/doc/forum/Weird_SSH_issue/comment_9_b66bfe7d8414639adc66874d7e94cabf._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="mithrandi@311efa1b2b5c4999c2edae7da06fb825899e8a82" + nickname="mithrandi" + subject="comment 9" + date="2016-03-07T20:13:25Z" + content=""" +I didn't quite find a way to reliably reproduce the issue, but I can confirm that as expected, I haven't run into it again after merging your fix. +"""]] diff --git a/doc/index.mdwn b/doc/index.mdwn index 5961ae87..52c23021 100644 --- a/doc/index.mdwn +++ b/doc/index.mdwn @@ -4,7 +4,7 @@ [[Install]] [API documentation](http://hackage.haskell.org/package/propellor) [[Other Documentation|documentation]] -[Sample config file](http://git.joeyh.name/?p=propellor.git;a=blob;f=config-joey.hs) +[Sample config file](http://git.joeyh.name/?p=propellor.git;a=blob;f=joeyconfig.hs) [[Security]] [[Todo]] [[Forum]] diff --git a/doc/todo/detect_and_use___96__GHC__95__PACKAGE__95__PATH__96__/comment_2_c111d137cbaa72b4e6a4c7df3ce2063c._comment b/doc/todo/detect_and_use___96__GHC__95__PACKAGE__95__PATH__96__/comment_2_c111d137cbaa72b4e6a4c7df3ce2063c._comment new file mode 100644 index 00000000..21791330 --- /dev/null +++ b/doc/todo/detect_and_use___96__GHC__95__PACKAGE__95__PATH__96__/comment_2_c111d137cbaa72b4e6a4c7df3ce2063c._comment @@ -0,0 +1,31 @@ +[[!comment format=mdwn + username="mithrandi@311efa1b2b5c4999c2edae7da06fb825899e8a82" + nickname="mithrandi" + subject="comment 2" + date="2016-03-07T20:11:28Z" + content=""" +I got Propellor to work with stack by applying this patch (to disable the auto-building): + +``` +diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs +index 5dbc583..b83bb91 100644 +--- a/src/Propellor/CmdLine.hs ++++ b/src/Propellor/CmdLine.hs +@@ -119,7 +119,7 @@ defaultMain hostlist = withConcurrentOutput $ do + fetchFirst (onlyprocess (update Nothing)) + go _ (Update (Just h)) = update (Just h) + go _ Merge = mergeSpin +- go cr cmdline@(Spin hs mrelay) = buildFirst cr cmdline $ do ++ go _ cmdline@(Spin hs mrelay) = buildFirst NoRebuild cmdline $ do + unless (isJust mrelay) commitSpin + forM_ hs $ \hn -> withhost hn $ spin mrelay hn + go cr (Run hn) = fetchFirst $ +``` + +I then replaced the \"propellor\" binary/symlink with this little wrapper: + +``` +#!/bin/sh +stack build && exec stack exec -- propellor-config \"$@\" +``` +"""]] |
