[Unit] Description=Bitcoin event streaming server After=network.target Requires=network.target [Service] Type=simple User= Group= Restart=on-failure Environment=MIX_ENV=prod Environment=RELEASE_NODE=bitfeed Environment=LANG=en_US.UTF-8 Environment=PORT= Environment=BITCOIN_RPC_USER= Environment=BITCOIN_RPC_PASS= Environment=BITCOIN_HOST= Environment=BITCOIN_RPC_PORT= Environment=BITCOIN_ZMQ_RAWBLOCK_PORT= Environment=BITCOIN_ZMQ_RAWTX_PORT= Environment=BITCOIN_ZMQ_SEQUENCE_PORT= WorkingDirectory=/server ExecStart=/bin/bash /server/_build/prod/rel/prod/bin/prod start ExecStop=/bin/bash /server/_build/prod/rel/prod/bin/prod stop [Install] WantedBy=multi-user.target