runtimeEnv

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright (C) NHR@FAU, University Erlangen-Nuremberg. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropPrivileges

func DropPrivileges(username string, group string) error

Changes the processes user and group to that specified in the config.json. The go runtime takes care of all threads (and not only the calling one) executing the underlying systemcall.

func LoadEnv

func LoadEnv(file string) error

Very simple and limited .env file reader. All variable definitions found are directly added to the processes environment.

func SystemdNotifiy

func SystemdNotifiy(ready bool, status string)

If started via systemd, inform systemd that we are running: https://www.freedesktop.org/software/systemd/man/sd_notify.html

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL