]> git.netwichtig.de Git - user/henk/code/s6/service_directory_template.git/blob - finish
add note about s6-permafailon
[user/henk/code/s6/service_directory_template.git] / finish
1 #!/bin/execlineb -S3
2 # the -S3 tells execline to substitute 3 positional parameters
3 # which for this file are:
4 # 1) exit code of the 'run' script
5 # 2) the number of the signal that killed the 'run' script (or an undefined number)
6 # 3) the name of the service directory
7
8 # TODO:
9 # a sane example of handling the arguments would be nice
10
11 # TODO:
12 # an example of how to use s6-permafailon would be good
13
14 # cleanup some files related to this service
15 rm -rf /tmp/${3}