31 lines
686 B
Desktop File
31 lines
686 B
Desktop File
[Unit]
|
|
Description=Tensamin Iota daemon
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
Requires=iota-daemon.socket
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/lib/iota/iota-daemon
|
|
User=iota
|
|
Group=iota
|
|
StateDirectory=iota
|
|
StateDirectoryMode=0750
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
Environment=IOTA_SOCKET=/run/iota/iota.sock
|
|
Environment=IOTA_DATA_DIR=/var/lib/iota
|
|
Environment=IOTA_DEPLOYMENT_MODE=system_always_on
|
|
Environment=IOTA_SUPERVISOR=systemd
|
|
|
|
# Exit code 75 = restart requested (daemon-specific convention)
|
|
RestartPreventExitStatus=0
|
|
RestartForceExitStatus=75
|
|
|
|
# Graceful shutdown
|
|
TimeoutStopSec=10
|
|
KillMode=mixed
|
|
KillSignal=SIGTERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|