Closed asyncmind0 closed 4 years ago
Creating a epmd service solved the isssue
[Unit]
Description = Erlang epmd
After = network.target
[Service]
LimitNOFILE = 20000500
User = riak
Type = simple
Restart = always
TimeoutStartSec = 1m
RestartSec = 1m
ExecStart = /usr/lib/riak/erts-5.10.3/bin/epmd
ExecStop = -/usr/lib/riak/erts-5.10.3/bin/epmd -kill
SyslogIdentifier = riak-epmd
PermissionsStartOnly = True
[Install]
WantedBy = multi-user.target
and a riak service like
[Unit]
Description = Distributed key/value store from Basho Technologies
After = network.target riak-epmd
Wants = riak-epmd
OnFailure = slack-notify-fail@%n
[Service]
LimitNOFILE = 20000500
User = riak
Type = forking
Restart = always
TimeoutStartSec = 10m
RestartSec = 1m
ExecStartPre = /bin/mkdir -p /var/run/riak/ ; /bin/chown -R riak:riak /var/run/riak
ExecStart = /usr/sbin/riak start
ExecStop = -/usr/sbin/riak stop
PIDFile = /var/run/riak/riak.pid
SyslogIdentifier = riak
PermissionsStartOnly = True
[Install]
WantedBy = multi-user.target
After a crash epmd keeps the service state as active hence preventing any notifications or restart triggers setup on systemd