tile38/vendor/github.com/nats-io/gnatsd/util/gnatsd.service

17 lines
287 B
SYSTEMD

[Unit]
Description=NATS messaging server
After=network.target
[Service]
PrivateTmp=true
Type=simple
ExecStart=/usr/sbin/gnatsd -c /etc/gnatsd.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s SIGINT $MAINPID
User=gnatsd
Group=gnatsd
[Install]
WantedBy=multi-user.target