diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-05-24 17:07:22 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-05-24 17:10:34 +0300 |
commit | a8d45eff28e7e186d0749e3e9cf980a23d93231e (patch) | |
tree | 50eb85966b6d87f73128728dab876e36dcc67799 /tests/startup.at | |
parent | 2ba31eb953d18bb818a87caddcbca80bc8a1d37d (diff) | |
download | pies-a8d45eff28e7e186d0749e3e9cf980a23d93231e.tar.gz pies-a8d45eff28e7e186d0749e3e9cf980a23d93231e.tar.bz2 |
Implement shutdown components
* src/pies.h: Update comment.
* src/progman.c (register_prog0): Register shutdown components
in disabled state.
(program_shutdown): New function.
(progman_stop): Call program_shutdown.
* tests/shutdown.at: New test.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
* tests/aux/startup: Rename to tests/aux/touchfile
* tests/startup.at: Reflect the change.
Diffstat (limited to 'tests/startup.at')
-rw-r--r-- | tests/startup.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/startup.at b/tests/startup.at index 72017ce..440c249 100644 --- a/tests/startup.at +++ b/tests/startup.at @@ -24,12 +24,12 @@ comp_pid_file=$PWD/comp.pid cat > pies.conf <<_EOT component b1 { mode startup; - command "$auxdir/startup $PWD 1 b1"; + command "$auxdir/touchfile $PWD 1 b1"; } component b2 { mode startup; - command "$auxdir/startup $PWD 2 b2"; + command "$auxdir/touchfile $PWD 2 b2"; } component test { |