diff options
-rw-r--r-- | doc/chpst.8.html | 7 | ||||
-rw-r--r-- | man/chpst.8 | 2 | ||||
-rw-r--r-- | package/CHANGES | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/doc/chpst.8.html b/doc/chpst.8.html index c481ce2..095822c 100644 --- a/doc/chpst.8.html +++ b/doc/chpst.8.html @@ -12,7 +12,7 @@ chpst - runs a program with a changed process state <h2><a name='sect1'>Synopsis</a></h2> <b>chpst</b> [-vVP012] -[-u <i>user</i>] [-U <i>user</i>] [-b <i>argv0</i>] [-e <i>dir</i>] [-/ <i>root</i>] [-n <i>inc</i>] [-l|-L <i>lock</i>] [-m <i>bytes</i>] [-d <i>bytes</i>] +[-u <i>user</i>] [-U <i>user</i>] [-b <i>argv0</i>] [-e <i>dir</i>] [-/ <i>root</i>] [-C <i>pwd</i>] [-n <i>inc</i>] [-l|-L <i>lock</i>] [-m <i>bytes</i>] [-d <i>bytes</i>] [-o <i>n</i>] [-p <i>n</i>] [-f <i>bytes</i>] [-c <i>bytes</i>] [-t <i>seconds</i>] <i>prog</i> <h2><a name='sect2'>Description</a></h2> <i>prog</i> consists of one or @@ -59,6 +59,11 @@ without adding a new variable. </dd> <dd>chroot. Change the root directory to <i>root</i> before starting <i>prog</i>. </dd> +<dt><b>-C <i>pwd</b> </i></dt> +<dd>chdir. Change the working directory to +<i>pwd</i> before starting <i>prog</i>. +When combined with -/, the working directory is changed after the chroot. </dd> + <dt><b>-n <i>inc</b> </i></dt> <dd>nice. Add <i>inc</i> to the <i><b>nice</b>(2)</i> value before starting <i>prog</i>. <i>inc</i> must be an integer, and may start with a minus or plus. diff --git a/man/chpst.8 b/man/chpst.8 index 57074d4..f13081c 100644 --- a/man/chpst.8 +++ b/man/chpst.8 @@ -14,6 +14,8 @@ chpst \- runs a program with a changed process state .IR dir ] [\-/ .IR root ] +[\-C +.IR pwd ] [\-n .IR inc ] [-l|-L diff --git a/package/CHANGES b/package/CHANGES index bb28edb..7a4aced 100644 --- a/package/CHANGES +++ b/package/CHANGES @@ -1,3 +1,5 @@ + * chpst.c, man/chpst.8: add -C option to change working directory (thx + Andrew J. Hesford, void linux). * doc/install.html: add link to sha256sum. * doc/install.html, doc/replaceinit.html: change mail address. * package/TODO: remove. |