blob: 631212a9b1c6b554b9229a69f7d05f661a3cce7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description=A simple, high performance messaging system for cloud native appliations, IoT messaging, and webservices architectures
Documentation=https://github.com/nats-io/gnatsd
After=network.target
[Service]
Type=simple
PIDFile=/run/nats-server.pid
ExecStart=/usr/bin/nats-server --pid /run/nats-server.pid --syslog --http_port 8222
ExecStop=/usr/bin/nats-server --signal quit=/run/nats-server.pid
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
RuntimeDirectory=nats-server
RuntimeDirectoryMode=755
[Install]
WantedBy=multi-user.target
|