2019-11-14 02:32:37 +00:00
|
|
|
# netdata service
|
|
|
|
# /etc/systemd/system/netdata.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Netdata
|
2020-02-23 04:19:22 +00:00
|
|
|
Wants=mynode.service docker_images.service
|
|
|
|
After=mynode.service docker_images.service
|
2019-11-14 02:32:37 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-03-21 02:53:38 +00:00
|
|
|
WorkingDirectory=/opt/mynode/netdata
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2020-05-19 03:43:04 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
2019-11-14 02:32:37 +00:00
|
|
|
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
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=control-group
|
2022-03-17 02:55:15 +00:00
|
|
|
TimeoutSec=120
|
2019-11-14 02:32:37 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=netdata
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|