Skip to content

Commit

Permalink
quark: add kuasar-quark systemd service
Browse files Browse the repository at this point in the history
Signed-off-by: Yulin.Sun <[email protected]>
  • Loading branch information
sunyulin728 committed Aug 30, 2023
1 parent dadf5d4 commit b7cee25
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 @@ -81,5 +81,7 @@ install-wasm:

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

install: all install-vmm install-wasm install-quark
16 changes: 16 additions & 0 deletions quark/service/kuasar-quark.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Kuasar Quark sandboxer daemon process
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/quark-sandboxer --listen /run/quark-sandboxer.sock --dir /var/lib/kuasar-quark
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
Delegate=yes
KillMode=process

[Install]
WantedBy=multi-user.target

0 comments on commit b7cee25

Please sign in to comment.