1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00
duniter_ynh/conf/systemd.service

20 lines
653 B
SYSTEMD
Raw Normal View History

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