You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
681 B
22 lines
681 B
5 years ago
|
[Unit]
|
||
|
Description=Besu Enterprise Ethereum java client
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
User={{ besu_user }}
|
||
|
Group={{ besu_group }}
|
||
|
Environment=HOME=/home/{{ besu_user }}
|
||
|
Environment=BESU_OPTS={{ besu_env_opts }}
|
||
|
Type=simple
|
||
|
{% if besu_cmdline_args %}
|
||
|
ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml {{ besu_cmdline_args }} >> {{besu_log_dir}}/besu.log 2>&1"
|
||
|
{% else %}
|
||
|
ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml >> {{besu_log_dir}}/besu.log 2>&1"
|
||
|
{% endif %}
|
||
|
SuccessExitStatus=143
|
||
|
Restart=on-failure
|
||
|
RestartSec=10s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|