go-systemd icon indicating copy to clipboard operation
go-systemd copied to clipboard

Go bindings to systemd socket activation, journal, D-Bus, and unit files

Results 82 go-systemd issues
Sort by recently updated
recently updated
newest added

In https://github.com/coreos/go-systemd/blob/f5f8d59a116b1ca501dd87cdb28f6ce89ccf58dc/activation/files_unix.go#L66 the return value of `os.NewFile` should be checked before `files` is changed. It can fail if the environment variables don't match the file descriptor table, e.g. `LISTEN_FDS` is...

Closes #402. Criticism is welcome, this is just some quick code I wrote recently and got permission from my employer to contribute.

I would like a module that can read [credentials](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Credentials) when the current program is running as a systemd service. This should be fairly simple and a small amount of code....

First, thanks a lot for providing this interface to systemd, I currently use it to synchronise the journal of multiple devices with an external remote. The recent follow method didn't...

Hi Community, I a recent event, I just discovered that the two functions to establish dbus connection doesn't handle context deadline event ```go func TestGoSystemd(t *testing.T) { ctx, _ :=...

This PR does some small improvements to `login1` package, namely changes tests to use blackbox approach to avoid building up the tech debt by adding new tests without doing so...

This method allows passing existing D-Bus connection, which allows to re-use connection between clients and to mock D-Bus connection for testing purposes. Extracted from #390 Includes commits from #395 Signed-off-by:...

This is a desired way of testing to avoid creating fragile test suites and be able to refactor code without touching tests. Extracted from #390 Signed-off-by: Mateusz Gozdek

The "Thread safety" section of [the `sd-journal` manpage](https://www.freedesktop.org/software/systemd/man/sd-journal.html) says: > Functions that operate on sd_journal objects are thread agnostic — given sd_journal pointer may only be used from one specific...