summarylogtreecommitdiffstats
path: root/nats-server.service
blob: 53dcd45252602e836bf33dae49ada4d9a2b30486 (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
ExecStart=/usr/bin/nats-server --syslog --http_port 8222
ExecReload=/usr/bin/nats-server --signal reload=$MAINPID
ExecStop=/usr/bin/nats-server --signal stop=$MAINPID
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
RuntimeDirectory=nats-server
RuntimeDirectoryMode=755

[Install]
WantedBy=multi-user.target