[WIP] Daemon & CLI
This commit is contained in:
parent
56aad3a023
commit
8b158108bb
100 changed files with 6519 additions and 1596 deletions
|
|
@ -5,13 +5,18 @@ Wants=network-online.target
|
|||
Requires=iota-daemon.socket
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/iota-daemon
|
||||
Type=simple
|
||||
ExecStart=/usr/local/lib/iota/iota-daemon
|
||||
User=iota
|
||||
Group=iota
|
||||
StateDirectory=iota
|
||||
StateDirectoryMode=0750
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
RuntimeDirectory=iota
|
||||
RuntimeDirectoryMode=0750
|
||||
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
|
||||
|
|
|
|||
|
|
@ -5,9 +5,12 @@ Description=Tensamin Iota daemon IPC socket
|
|||
ListenStream=/run/iota/iota.sock
|
||||
SocketMode=0660
|
||||
SocketUser=iota
|
||||
SocketGroup=iota
|
||||
DirectoryMode=0755
|
||||
SocketGroup=iota-operators
|
||||
Backlog=5
|
||||
RemoveOnStop=true
|
||||
NonBlocking=true
|
||||
# Enabling this socket starts the daemon on demand when a client connects.
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
|
|
|
|||
2
systemd/sysusers.d/iota.conf
Normal file
2
systemd/sysusers.d/iota.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
g iota-operators -
|
||||
u iota - "Tensamin Iota daemon" /var/lib/iota
|
||||
Loading…
Reference in a new issue