summarylogtreecommitdiffstats
path: root/ardor.service
blob: 1eb20dfe02a3189b96d42c4a23d88d3c94f356cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Ardor Blockchain Client
Wants=network.target
After=network.target
RequiresMountsFor=/opt/ardor /var/lib/ardor /var/log/ardor

[Service]
Type=simple
EnvironmentFile=-/etc/default/ardor
User=ardor
ProtectSystem=strict
PrivateDevices=true
ProtectKernelTunables=true
ProtectControlGroups=true
ReadWritePaths=/opt/ardor/conf /var/lib/ardor /var/log/ardor
WorkingDirectory=/opt/ardor
ExecStart=/usr/bin/java $ARDOR_JVM_OPTS nxt.Nxt
Restart=on-abort

[Install]
WantedBy=multi-user.target