66

Software

obarun.org

66-env

Handles an environment file and variable of a service depending on the options passed.

Interface

    66-env [ -h ] [ -z ] [ -v verbosity ] [ -t tree ] [ -c version ] [ -s version ] [ -V|L ] [ -r key=value ] [ -i src,dst ] [ -e editor ] service

The edition of the configuration file is the default option if neither option is passed.

Exit codes

Options

Usage examples

    66-env -L ntpd

    66-env -r CMD_ARGS=-d

    66-env -r CMD_ARGS='-c /etc/nginx/nginx.conf -g "daemon off;"'

    66-env -i 0.1.6,0.1.7 nginx

    66-env -V ntpd

    sudo 66-env -e nano ntpd

    66-env -s 0.1.6 ntpd

Notes

Removing a key from the environment after the use can be handled by using an exclamation mark ! at the begin of the value:

    66-env -r 'CMD_ARGS=!-c /etc/nginx/nginx.conf -g "daemon off;"'