mynode/rootfs/standard/etc/systemd/system/netdata.service

26 lines
512 B
SYSTEMD
Raw Normal View History

2019-11-14 02:32:37 +00:00
# netdata service
# /etc/systemd/system/netdata.service
[Unit]
Description=Netdata
Wants=mynode.service
After=mynode.service
2019-11-14 02:32:37 +00:00
[Service]
WorkingDirectory=/opt/mynode/docker
ExecStart=/usr/local/bin/docker-compose -f netdata-compose.yml up
2019-11-26 02:17:32 +00:00
ExecStop=/usr/local/bin/docker-compose -f netdata-compose.yml down
2019-11-14 02:32:37 +00:00
User=bitcoin
Group=bitcoin
Type=simple
KillMode=process
TimeoutSec=240
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=netdata
[Install]
WantedBy=multi-user.target