mynode/rootfs/standard/etc/systemd/system/specter.service
2021-06-03 23:01:19 -05:00

31 lines
834 B
Desktop File

# Specter service
# /etc/systemd/system/specter.service
[Unit]
Description=Specter
Wants=bitcoin.service
After=bitcoin.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/mynode_gen_cert.sh specter 825
ExecStartPre=/usr/bin/mynode_pre_specter.sh
WorkingDirectory=/opt/mynode/specter
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