summarylogtreecommitdiffstats
path: root/nxt.service
diff options
context:
space:
mode:
Diffstat (limited to 'nxt.service')
-rw-r--r--nxt.service19
1 files changed, 17 insertions, 2 deletions
diff --git a/nxt.service b/nxt.service
index d897342cd201..666c74204fef 100644
--- a/nxt.service
+++ b/nxt.service
@@ -1,10 +1,25 @@
[Unit]
-Description=NXT
+Description=NXT Cryptocurrency Daemon
After=network.target
[Service]
User=nxt
-ExecStart=/usr/bin/bash -c 'cd /opt/nxt/; ./run.sh'
+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