Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Add exit-service #6

Merged
merged 3 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ used for the integration tests.
== Overview
The following services are available:

* link:noop-service/README.adoc[noop-service]:
Performs no operation and just sleeps.
* link:echo-service/README.adoc[echo-service]:
Prints the content of an environment variable to standard output.
* link:exit-service/README.adoc[exit-service]:
Terminates immediately with a given exit code.
* link:noop-service/README.adoc[noop-service]:
Performs no operation and just sleeps.
* link:nostop-service/README.adoc[nostop-service]:
Performs no operation and just sleeps, but will ignore stop signals sent by systemd and have to be terminated by systemd.
Performs no operation and just sleeps, but will ignore stop signals
sent by systemd and have to be terminated by systemd.

== Contributing
The integration tests and the integration test repo are developed as open
source tools and we absolutely welcome any contributions! Don't hesitate
to drop us a line at [email protected] or reach out directly to any of our
committers/contributors.
The integration tests and the integration test repo are developed as
open source tools and we absolutely welcome any contributions! Don't
hesitate to drop us a line at [email protected] or reach out directly to
any of our committers/contributors.
5 changes: 5 additions & 0 deletions exit-service/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
= exit-service

The exit-service terminates immediately with the exit code contained in
the environment variable `EXIT_CODE`. If the environment variable is not
set then the exit code is 0.
Binary file added exit-service/exit-service-1.0.0.tar.gz
Binary file not shown.
21 changes: 15 additions & 6 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
{
"version": "1",
"packages": {
"noop-service": [
"echo-service": [
{
"version": "1.0.0",
"path": "noop-service/noop-service-1.0.0.tar.gz",
"path": "echo-service/echo-service-1.0.0.tar.gz",
"hashes": {
"SHA512": "1cba9a5cad05e0aa66be9185b1ed24d40b52cdd21a7638a825f7bc69b1b221250a10cd8c4b5d50faa94e79045b0eeee9b76cbc2094cc47e80084e87caead98ed"
"SHA512": "0cd616400e83a0cbe62774bf0ccc9902503049951d187c135f7f3bd7a57e4adf2581736892543d701b12c379435e828778a9f20757e3a81d81a2cee1c03737c7"
}
}
],
"echo-service": [
"exit-service": [
{
"version": "1.0.0",
"path": "echo-service/echo-service-1.0.0.tar.gz",
"path": "exit-service/exit-service-1.0.0.tar.gz",
"hashes": {
"SHA512": "0cd616400e83a0cbe62774bf0ccc9902503049951d187c135f7f3bd7a57e4adf2581736892543d701b12c379435e828778a9f20757e3a81d81a2cee1c03737c7"
"SHA512": "8b2af1e8613de51462392870324dfc6ac50080035972aa9f97f03af925eeaa28a629057884c4b27d32cd6f415a5c746848a3ad6cca6375409ddea24a047a97ba"
}
}
],
"noop-service": [
{
"version": "1.0.0",
"path": "noop-service/noop-service-1.0.0.tar.gz",
"hashes": {
"SHA512": "1cba9a5cad05e0aa66be9185b1ed24d40b52cdd21a7638a825f7bc69b1b221250a10cd8c4b5d50faa94e79045b0eeee9b76cbc2094cc47e80084e87caead98ed"
}
}
],
Expand Down
7 changes: 4 additions & 3 deletions nostop-service/README.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= nostop-service

The nostop-service performs no action, it just sleeps, the difference to the noop service is, that this service will ignore SIGINT and SIGTERM, which effectively means that it will not stop when systemd asks it to stop.


The nostop-service performs no action, it just sleeps, the difference to
the noop service is, that this service will ignore SIGINT and SIGTERM,
which effectively means that it will not stop when systemd asks it to
stop.