How to restart daemon assembled with mix release?

Hi all, I just got one of my side project migrated from distillery to mix release, it’s running on Ubuntu 16.04 with bin/tweet_bot daemon.

But I have one question, how can I restart the daemon when a new version is deployed to my server? I found there’s a restart command here, but it won’t restart the daemon as I see.

Right now I would have to find out the pid and kill it, then start the daemon again.

1 Like

hi @chensan
you can do ps -eaf|grep elixir check the pid used by your app and kill it: kill "pid" without cotes.