summarylogtreecommitdiffstats
path: root/nxt.service
blob: 666c74204fef9bde59611dedcd3d2fadc163bcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Unit]
Description=NXT Cryptocurrency Daemon
After=network.target

[Service]
User=nxt
WorkingDirectory=/usr/share/java/nxt
ExecStart=/usr/bin/java \
	-cp nxt.jar:lib/*:conf:addons/classes:addons/lib/* \
	-Dnxt.properties=/etc/nxt/nxt.properties \
	-Dlogging.properties=/etc/nxt/logging.properties \
	nxt.Nxt

NoNewPrivileges=true

PrivateTmp=true
PrivateDevices=true
ProtectHome=true

ReadOnlyPaths=/
ReadWritePaths=/var/lib/nxt
ReadWritePaths=/var/log/nxt

[Install]
WantedBy=multi-user.target