diff --git a/util/nats-server.service b/util/nats-server.service new file mode 100644 index 00000000..a45cf639 --- /dev/null +++ b/util/nats-server.service @@ -0,0 +1,15 @@ +[Unit] +Description=NATS Server +After=network.target ntp.service + +[Service] +PrivateTmp=true +Type=simple +ExecStart=/usr/sbin/nats-server -c /etc/nats-server.conf +ExecReload=/bin/kill -s HUP $MAINPID +ExecStop=/bin/kill -s SIGINT $MAINPID +User=nats +Group=nats + +[Install] +WantedBy=multi-user.target