daemon

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

daemon process library for linux and windows.

1. you can set restart limit count for child process. 2. you can set child process running user, but only supported in linux, and want root privilege in parent process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(exit int, pid, username string, arg ...string)

Start start child process

exit: child process allow exit count, if <=0 not limit,
      otherwise if child process exit more than exit count,
      the parent process will exit
pid: pid file save path
username: change child process by user only supported linux, allow empty
arg: child process startup arguments

Types

This section is empty.

Jump to

Keyboard shortcuts

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