From c6a261c4e5642944cb94802e5e4036855604bac6 Mon Sep 17 00:00:00 2001 From: Changwei Ge Date: Fri, 11 Feb 2022 03:32:32 +0000 Subject: [PATCH] misc: add systemd service unit file Will be consumed when add/enable nydus-snapshotter service to systemd Signed-off-by: Changwei Ge --- misc/snapshotter/nydus-snapshotter.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 misc/snapshotter/nydus-snapshotter.service diff --git a/misc/snapshotter/nydus-snapshotter.service b/misc/snapshotter/nydus-snapshotter.service new file mode 100644 index 0000000000..ab7b2f127a --- /dev/null +++ b/misc/snapshotter/nydus-snapshotter.service @@ -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