From 0ec8b80957eb7983eb75f5b199f2811f8fd34b13 Mon Sep 17 00:00:00 2001 From: auyer Date: Fri, 13 Oct 2023 11:28:40 -0300 Subject: [PATCH] adds systemd service to run without docker --- systemd/memory_kv.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd/memory_kv.service diff --git a/systemd/memory_kv.service b/systemd/memory_kv.service new file mode 100644 index 0000000..90558e3 --- /dev/null +++ b/systemd/memory_kv.service @@ -0,0 +1,15 @@ +[Unit] +Description=MemoryKV server daemon github.com/auyer/MemoryKV + +# You may want to start after your network is ready +After=network-online.target +Wants=network-online.target + +[Service] +ExecStart=/usr/bin/kv +Restart=always +PIDFile=/tmp/memorykv_pid +Environment=PORT=80 + +[Install] +WantedBy=network-online.target