From 557ac6b5c147ca9d779986c04f72df470e75fa23 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Thu, 25 Jun 2020 14:41:11 -0700 Subject: [PATCH] systemd: add a systemd service example file Copy this file into /etc/systemd/system, and \# systemctl enable zot \# systemctl start zot --- examples/zot.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/zot.service diff --git a/examples/zot.service b/examples/zot.service new file mode 100644 index 00000000..3705ad12 --- /dev/null +++ b/examples/zot.service @@ -0,0 +1,15 @@ +[Unit] +Description=OCI Distribution Registry +Documentation=https://github.com/anuvu/zot +After=network.target auditd.service local-fs.target + +[Service] +Type=simple +ExecStart=/usr/bin/zot serve /etc/zot/config.json +Restart=on-failure +User=zot +Group=zot +LimitNOFILE=500000 + +[Install] +WantedBy=multi-user.target