blob: be812aa58090b4be37c577dc5d8e886b256550ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description=Electroneum Full Node
After=network.target
[Service]
User=electroneum
Group=electroneum
WorkingDirectory=~
Type=forking
# create pid dir with root permission
PermissionsStartOnly=true
ExecStartPre=-/usr/bin/mkdir /var/run/electroneum
ExecStartPre=/usr/bin/chown -R electroneum:electroneum /var/run/electroneum/
PIDFile=/var/run/electroneum/electroneumd.pid
# start service
ExecStart=/usr/bin/electroneumd --config-file /etc/electroneumd.conf \
--detach --pidfile /var/run/electroneum/electroneumd.pid
[Install]
WantedBy=multi-user.target
|