mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
26 lines
512 B
Desktop File
26 lines
512 B
Desktop File
# netdata service
|
|
# /etc/systemd/system/netdata.service
|
|
|
|
[Unit]
|
|
Description=Netdata
|
|
Wants=mynode.service
|
|
After=mynode.service
|
|
|
|
[Service]
|
|
WorkingDirectory=/opt/mynode/docker
|
|
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=process
|
|
TimeoutSec=240
|
|
Restart=always
|
|
RestartSec=60
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=netdata
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |