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

32 lines
872 B
SYSTEMD
Raw Normal View History

2020-07-08 03:13:01 +00:00
# Specter service
# /etc/systemd/system/specter.service
[Unit]
Description=Specter
Wants=bitcoin.service
After=bitcoin.service
2020-07-08 03:13:01 +00:00
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/mynode_gen_cert.sh specter 825
2021-06-04 04:01:19 +00:00
ExecStartPre=/usr/bin/mynode_pre_specter.sh
2020-07-08 03:13:01 +00:00
WorkingDirectory=/opt/mynode/specter
2021-12-06 06:22:19 +00:00
Environment="SPECTER_API_ACTIVE=True"
2020-07-08 03:13:01 +00:00
ExecStart=/opt/mynode/specter/env/bin/python3 -m cryptoadvance.specter server --host 0.0.0.0 --cert=/mnt/hdd/mynode/settings/specter/myNode.local.crt --key=/mnt/hdd/mynode/settings/specter/myNode.local.key
Environment=PATH=/opt/mynode/specter/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/bin
User=bitcoin
Group=bitcoin
Type=simple
TimeoutSec=120
Restart=always
RestartSec=30
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=specter
[Install]
WantedBy=multi-user.target