forked from Spark/ssm-services
19 lines
358 B
Plaintext
19 lines
358 B
Plaintext
|
#!/usr/bin/watchman
|
||
|
|
||
|
service_type=oneshot
|
||
|
service_command=( /usr/bin/true )
|
||
|
|
||
|
pre_start() {
|
||
|
echo '1' > /proc/sys/fs/binfmt_misc/status || return 1
|
||
|
|
||
|
if [[ -d /etc/binfmt.d ]]; then
|
||
|
for i in /etc/binfmt.d/*; do
|
||
|
cat "$i" > /proc/sys/fs/binfmt_misc/register || return 1
|
||
|
done
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pre_stop() {
|
||
|
echo '-1' > /proc/sys/fs/binfmt_misc/status || return 1
|
||
|
}
|