newsGNU Pies - News: Version 1.4

 
 
Show feedback again
Latest News
Version 1.8 posted by gray, Sat Aug 13 08:39:42 2022 - 0 replies
Version 1.6 posted by gray, Sun Jan 2 10:09:37 2022 - 0 replies
Version 1.6 posted by gray, Wed Jul 7 08:59:41 2021 - 0 replies
Version 1.5 posted by gray, Mon Dec 14 07:54:58 2020 - 0 replies
Version 1.4 posted by gray, Tue Jul 2 14:02:06 2019 - 0 replies
[Submit News]
[9 news in archive]

Version 1.4

Item posted by Sergey Poznyakoff <gray> on Tue Jul 2 14:02:06 2019.

Version 1.4 of GNU pies is available available for download.

New in this release:

New option --no-init

The --no-init option instructs pies not to switch to init mode if its PID is 1. Use this option if you run pies as a process manager in a
docker container.

New component modes: startup and shutdown

Startup components are run right after pies startup. Any other components start running only after last startup component has terminated.

Shutdown components are executed at program shutdown, after all other components have been terminated.

Any number of startup or shutdwon components can be defined in the configuration file. Such multiple components are run simultaneously,
unless required otherwise by their "prerequisites" and "dependents" statements.

New component flag: shell

The 'shell' flag instructs pies to run the component via "/bin/sh -c $command". Use it if the command should undergo variable expansion,
contains redirections, pipes, etc. E.g.

New 'env' statement

The 'env' statement has been re-implemented as a compound statement. It can contain the following sub-statements:

clear

Clears the environment

keep NAME

Keeps the variable NAME when clearing the environment. Implies
"clear". NAME can be a globbing pattern, in which case all
variables matching the pattern are retained.

set "NAME=VALUE"

Sets the environment variable for the component. VALUE is subject
to variable expansion.

eval "VALUE"

Perform variable expansion on VALUE and discard the result (similar
to the shell ":" command). Useful for side effects, e.g.:

unset NAME

Unsets the variable. NAME can be a globbing pattern, in which case all
variables matching the pattern are unset.

Example:

Legacy 'env' statement

Support for the old one-line syntax of "env" is retained for
backward compatibility.

Previous versions applied unnecessary word splitting if given a
single argument. This is now fixed, so that e.g. the following
statement is processed correctly and defines a single variable
X to have the value "foo bar":

New environment variable available for commands started from return-code

Programs started via "exec" statement in the "return-code" block obtain the PID of the master pies process in environment variable
PIES_MASTER_PID.

Other changes

  • Improved testsuite
  • Improved cyclic dependency diagnostics

Comments:

No messages in Version 1.4

 

Show feedback again

Back to the top


Powered by Savane 3.1-cleanup+gray