Files
wasmer/scripts/wasmer-binfmt.service.example
2021-08-01 12:39:21 +09:00

16 lines
415 B
Plaintext

[Unit]
Description=Set up wasmer to handle execution of wasm binaries
DefaultDependencies=no
Conflicts=shutdown.target
After=proc-sys-fs-binfmt_misc.automount
After=proc-sys-fs-binfmt_misc.mount
Before=sysinit.target shutdown.target
ConditionPathIsReadWrite=/proc/sys/
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/wasmer binfmt reregister
ExecStop=/usr/bin/wasmer binfmt unregister
TimeoutSec=10s