66

obarun.org

66-env

Lists or replaces an environment variable of a service depending on the options passed.

Interface

    66-env [ -h ] [ -z ] [ -v verbosity ] [ -t tree ] [ -d dir ] [ -L ] [ -e ] [ -r key=value ] service

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;"'

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;"'