Skip to content

Commit

Permalink
misc: add systemd service unit file
Browse files Browse the repository at this point in the history
Will be consumed when add/enable nydus-snapshotter service to systemd

Signed-off-by: Changwei Ge <[email protected]>
  • Loading branch information
changweige committed Feb 11, 2022
1 parent 8c93df5 commit c6a261c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions misc/snapshotter/nydus-snapshotter.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=nydus snapshotter
After=network.target
Before=containerd.service

[Service]
Type=simple
Environment=HOME=/root
ExecStart=/usr/local/bin/containerd-nydus-grpc --config-path /etc/nydus/config.json
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target

0 comments on commit c6a261c

Please sign in to comment.