Skip to content

Commit

Permalink
Merge pull request #86 from jwcesign/main
Browse files Browse the repository at this point in the history
wasm: add kuasar-wasm systemd service
  • Loading branch information
flyflypeng authored Sep 14, 2023
2 parents 450b96c + c02ec99 commit c189530
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ endif

install-wasm:
@install -p -m 550 bin/wasm-sandboxer ${DEST_DIR}${BIN_DIR}/wasm-sandboxer
@install -d -m 750 ${DEST_DIR}${SYSTEMD_SERVICE_DIR}
@install -p -m 640 wasm/service/kuasar-wasm.service ${DEST_DIR}${SYSTEMD_SERVICE_DIR}/kuasar-wasm.service

install-quark:
@install -p -m 550 bin/quark-sandboxer ${DEST_DIR}${BIN_DIR}/quark-sandboxer
Expand Down
16 changes: 16 additions & 0 deletions wasm/service/kuasar-wasm.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Kuasar Wasm sandboxer daemon process
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/wasm-sandboxer --listen /run/wasm-sandboxer.sock --dir /run/kuasar-wasm
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
Delegate=yes
KillMode=process

[Install]
WantedBy=multi-user.target

0 comments on commit c189530

Please sign in to comment.