dstart

command module
v0.0.0-...-1c5bb61 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: LGPL-3.0 Imports: 8 Imported by: 0

README

dstart

Start a program as daemon service. for linux & mac , if you don't want to write complex systemd service file.

Will be good when use this tool together with @reboot command in crontab :) .

help
dstart -h
dstart --help
usage
dstart [options] executable [params...]
A. Option usage
1. Direct start a program
Usage of ./dstart:
  -env value
        -env key=value [-env key=value ...] (default array flags.)
  -err string
        -err error_output_file (currently overwriten file not create a new one)
  -etoo
        -etoo : redirect error output to standard output
  -in string
        -in input_file
  -out string
        -out output_file (currently overwriten file not create a new one)
  -u string
        -u username
  -wd string
        -wd working_directory
2. Start programs from a configuration file
./dstart -c config.toml

Note: The config file can be either found in working directory or application file directory.

See config.toml.example file for config example

B. Example
tail a file then write to another
./dstart -in ~/input_file -out ~/output_file -wd /usr/bin tail

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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