Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Dont depend on systemd on all non-windows targets #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

metux
Copy link

@metux metux commented May 26, 2021

Systemd is purely Linux specific, even there and only running on some
distros, thus making the switch on whether we're not on Windows is
just wrong.

Instead it should only be enabled when we're really building for some
systemd/journald based platform.

Signed-off-by: Enrico Weigelt, metux IT consult [email protected]

@metux metux force-pushed the submit/dont-depend-on-systemd branch from 65498cd to 5143c80 Compare May 26, 2021 14:05
@@ -12,14 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// +build !windows
// +build !windows,!journald

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default behavior on Linux should not change and should not require a new build tag

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default behavior on Linux should not change and should not require a new build tag

Do you have any better idea for getting rid this useless code ?

On LINUX this code does pretty much NOTHING (throwing errors) when running as direct child of init
(that alone is just a ridiculously unreliable way to check for being a daemon) - that only works on Poetterix.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding no_journald tag might be fine (if it has significant benefit on footprint)

Systemd is purely Linux specific, even there and only running on some
distros, thus making the switch on whether we're not on Windows is
just wrong.

Instead it should only be enabled when we're really building for some
systemd/journald based platform.

Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
@metux metux force-pushed the submit/dont-depend-on-systemd branch from 5143c80 to 503bd65 Compare May 31, 2021 16:45
@bgilbert
Copy link
Contributor

This repo was an attempt to split capnslog out of github.com/coreos/pkg. We're giving up on that and archiving this repository. If you'd like, you can reopen your PR against coreos/pkg.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants