mynode/rootfs/standard/etc/systemd/system/netdata.service
2020-07-17 18:10:23 -05:00

28 lines
650 B
Desktop File

# netdata service
# /etc/systemd/system/netdata.service
[Unit]
Description=Netdata
Wants=mynode.service docker_images.service
After=mynode.service docker_images.service
[Service]
WorkingDirectory=/opt/mynode/netdata
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStart=/usr/local/bin/docker-compose -f netdata-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f netdata-compose.yml down
User=bitcoin
Group=bitcoin
Type=simple
KillMode=control-group
TimeoutSec=240
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=netdata
[Install]
WantedBy=multi-user.target