godaemonize

command module
v0.1.2-0...-8c90b42 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 9 Imported by: 0

README

#godaemonize Build Status

Introduction

godaemonize is a command-line utility that runs a command as a Unix daemon.

The godaemonize is most like daemonize

Installation

go get github.com/bjdgyc/godaemonize

The bin file will install in GOPATH src/bin dir.

Usage

godaemonize, version 0.1.1
Usage: godaemonize [OPTIONS] -x file [ARGV] ...

OPTIONS

  -E string
    	Pass environment setting to daemon. like [a=b,c=d]
  -d string
    	Set daemon's working directory to <dir>
  -e string
    	Send daemon's stderr to file, default is <stderr>
  -o string
    	Send daemon's stdout to file, default is <stdout>
  -p string
    	Save PID to <pidfile>
  -u string
    	Run daemon as user <user>. Requires invocation as root

Quickstart

godaemonize -p /tmp/some.pid -u nobody -E "key1=value1,key2=value2" -e /tmp/some_err.log -o /tmp/some_out.log -x /tmp/some.sh some parameter

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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