mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
12 lines
235 B
Bash
Executable File
12 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
# Called by kernel when last child in cgroup exists
|
|
|
|
BASE=/sys/fs/cgroup/finit
|
|
PROC=`basename $1`
|
|
DIR="$BASE$1"
|
|
|
|
/libexec/finit/logit -p daemon.info -t finit "$PROC stopped, cleaning up control group $DIR"
|
|
rmdir $DIR
|
|
|
|
exit 0
|