2022-03-12 16:55:59 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Duniter node
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment="DUNITER_WEB=web"
|
2024-02-21 14:59:14 +01:00
|
|
|
Environment="DUNITER_HOME=__DATA_DIR__"
|
2022-03-12 16:55:59 +01:00
|
|
|
Environment="DUNITER_DATA=duniter_default"
|
|
|
|
Environment="DUNITER_OPTS="
|
|
|
|
Group=duniter
|
|
|
|
User=duniter
|
|
|
|
Type=forking
|
2024-02-22 20:19:13 +01:00
|
|
|
ExecStart=/usr/bin/duniter ${DUNITER_WEB}start --home ${DUNITER_HOME} --mdb ${DUNITER_DATA} $DUNITER_OPTS --webmport __PORT_WEB_ADMIN__
|
|
|
|
ExecReload=/usr/bin/duniter ${DUNITER_WEB}restart --home ${DUNITER_HOME} --mdb ${DUNITER_DATA} $DUNITER_OPTS --webmport __PORT_WEB_ADMIN__
|
2022-03-12 16:55:59 +01:00
|
|
|
ExecStop=/usr/bin/duniter stop --home ${DUNITER_HOME} --mdb ${DUNITER_DATA}
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|