summaryrefslogtreecommitdiff
path: root/finish
blob: 11311bd4b3b49db31320f87e27a0a278f8cbc998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/execlineb -S3
# the -S3 tells execline to substitute 3 positional parameters
# which for this file are:
# 1) exit code of the 'run' script
# 2) the number of the signal that killed the 'run' script (or an undefined number)
# 3) the name of the service directory

# TODO:
# a sane example of handling the arguments would be nice

# TODO:
# an example of how to use s6-permafailon would be good

# cleanup some files related to this service
rm -rf /tmp/${3}