@@ -4,7 +4,7 @@ After=network.target
[Service]
Type=simple
-ExecStart={{ app_deploy_root }}/agile/rpc/lily/run.sh server config.toml
+ExecStart=/bin/bash lily.sh -d -c config.toml --server
WorkingDirectory={{ app_deploy_root }}/agile/rpc/lily
User=www-data
Group=www-data
-ExecStart={{ app_deploy_root }}/agile/rpc/lily/run.sh worker config.toml
+ExecStart=/bin/bash lily.sh -d -c config.toml --worker
@@ -1,2 +1,4 @@
__pycache__/
/tmp/
+/config.toml
+/python/
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+source $PWD/python/bin/activate
+python lily $*