~craftyguy

Oregon, US

~craftyguy/superd

Last active 18 days ago

~craftyguy/caerbannog-devel

Last active 3 months ago

~craftyguy/caerbannog-announce

Last active 1 year, 11 months ago

~craftyguy/ridecasa

Last active 2 years ago

~craftyguy/public-inbox

Last active 3 years ago
View more

Recent activity

Re: [PATCH superd] doc/superd.1: fix services location 18 days ago

From Clayton Craft to ~craftyguy/superd

On Sat, 19 Nov 2022 20:15:04 -0500 Adnan Maolood <me@adnano.co> wrote:
> Update the docs to match the current behavior.

Thanks a lot for the patch, applied!

-Clayton

Re: [PATCH] makefile: add installmisc target to install everything except binaries a month ago

From Clayton Craft to ~craftyguy/superd

On Sun, 16 Oct 2022 21:51:19 +0300 Jami Kettunen <jamipkettunen@gmail.com> wrote:
> From: Jami Kettunen <jamipkettunen@gmail.com>
> 
> The "install" target still behaves like before but now one can
> "make installmisc" to not install the binaries in case they're being
> handled (built and installed) outside the makefile in e.g. a
> distribution's package build environment.
> ---
>  Makefile | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 

lgtm. thanks for the patch!

[PATCH v2 3/3] service: ignore stdout/stderr streams from command 3 months ago

From Clayton Craft to ~craftyguy/superd

No longer being used since stdout/stderr are being sent directly to an
os.File
---
 internal/service/service.go | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/internal/service/service.go b/internal/service/service.go
index 676beda..df0a694 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -374,8 +374,6 @@ func (s *Service) Run(quit <-chan struct{}) {
			cmdChan = nil
			streams := command.Streams()
			cmdStatus = streams.Status
[message trimmed]

[PATCH v2 2/3] service: send stdout/stderr to a log file 3 months ago

From Clayton Craft to ~craftyguy/superd

for #38
---
 internal/service/service.go | 60 ++++++++++++++++++++++++++++++++-----
 1 file changed, 53 insertions(+), 7 deletions(-)

diff --git a/internal/service/service.go b/internal/service/service.go
index 0e5edf2..676beda 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -7,6 +7,7 @@ import (
	"errors"
	"fmt"
	"os"
	"path/filepath"
[message trimmed]

[PATCH v2 1/3] cmd: pass os.File to go-cmd when instantiating a new Command 3 months ago

From Clayton Craft to ~craftyguy/superd

This depends on a patch to go-cmd, which is in my fork. I plan to submit
the patch upstream.

By passing an os.File, we are one step closer to having services log
stdout/stderr to individual files, and for working around #38
---
 go.mod                           |  2 +-
 go.sum                           |  2 ++
 internal/cmd/cmd.go              |  5 +++--
 internal/cmd/cmd_test.go         |  4 ++--
 internal/service/service.go      | 10 +++++-----
 internal/service/service_test.go | 13 +++++++------
 6 files changed, 20 insertions(+), 16 deletions(-)
[message trimmed]

[PATCH 3/3] service: ignore stdout/stderr streams from command 3 months ago

From Clayton Craft to ~craftyguy/superd

No longer being used since stdout/stderr are being sent directly to an
os.File
---
 internal/service/service.go | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/internal/service/service.go b/internal/service/service.go
index de15df4..3984171 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -326,8 +326,6 @@ func (s *Service) Run(quit <-chan struct{}) {

		// command streams
		cmdStatus <-chan goCmd.Status
[message trimmed]

[PATCH 2/3] service: send stdout/stderr to a log file 3 months ago

From Clayton Craft to ~craftyguy/superd

for #38
---
 internal/service/service.go | 30 +++++++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)

diff --git a/internal/service/service.go b/internal/service/service.go
index 0e5edf2..de15df4 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -7,6 +7,7 @@ import (
	"errors"
	"fmt"
	"os"
	"path/filepath"
[message trimmed]

[PATCH 1/3] cmd: pass os.File to go-cmd when instantiating a new Command 3 months ago

From Clayton Craft to ~craftyguy/superd

This depends on a patch to go-cmd, which is in my fork. I plan to submit
the patch upstream.

By passing an os.File, we are one step closer to having services log
stdout/stderr to individual files, and for working around #38
---
 go.mod                           |  2 +-
 go.sum                           |  2 ++
 internal/cmd/cmd.go              |  5 +++--
 internal/cmd/cmd_test.go         |  4 ++--
 internal/service/service.go      | 10 +++++-----
 internal/service/service_test.go | 13 +++++++------
 6 files changed, 20 insertions(+), 16 deletions(-)
[message trimmed]

[PATCH 0/3] Write service stdout/stderr to separate log files 3 months ago

From Clayton Craft to ~craftyguy/superd

This attempts to work around #38, but even if that issue wasn't a thing
I think separating service outputs from superd's output is an
improvement since it reduces the noise visible in superd.log.

This sends service output to .log files in
$XDG_STATE_HOME/superd/logs/<name>.log, with some simple file rotation
that happens every time the service is started/restarted by superd.


*** BLURB HERE ***

Clayton Craft (3):
  cmd: pass os.File to go-cmd when instantiating a new Command
  service: send stdout/stderr to a log file

Re: Still being developed? 3 months ago

From Clayton Craft to ~craftyguy/caerbannog-devel

On Wed, 17 Aug 2022 00:04:59 +0000 Edgar Vincent <e-v@posteo.net> wrote:
> Thanks a lot for this very nice application. By any chance, is it still being
> developed? I find it very useful and would love to see it grow. For instance,
> I'd love to be able to display the content of entries.

Not actively, since it does basically everything I want it to do, though I'd be
more than happy to review/accept patches that expand the app's capabilities. :)

-Clayton