]> git.netwichtig.de Git - user/henk/code/s6/service_directory_template.git/blob - finish
307ee05dc162fb605cc16d3dd23df84b446a9dff
[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 # cleanup some files related to this service
12 rm -rf /tmp/${3}