summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-16 16:37:33 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-16 16:45:12 +0300
commitd1b1cf62e613390845e9f97f8cb38d1af20618ef (patch)
tree5d78dbdb93eed3824d79bf4cd4002f19a34dd110 /yarns
parenta9be3b3889f794e70b2fbfa0741a41e16c877488 (diff)
downloaddistixapi-d1b1cf62e613390845e9f97f8cb38d1af20618ef.tar.gz
Turn backend into a cliapp application
This will make it easier to use from a systemd unit.
Diffstat (limited to 'yarns')
-rw-r--r--yarns/900.yarn5
1 files changed, 4 insertions, 1 deletions
diff --git a/yarns/900.yarn b/yarns/900.yarn
index 5d11865..a41a558 100644
--- a/yarns/900.yarn
+++ b/yarns/900.yarn
@@ -18,7 +18,10 @@
IMPLEMENTS GIVEN a running backend instance
backend = os.path.join(srcdir, 'distix-backend')
cliapp.runcmd(
- ['/usr/sbin/daemonize', '-c.', backend, 'pid', 'port', 'users.yaml'])
+ ['/usr/sbin/daemonize', '-c', datadir,
+ backend, '--pid-file', 'pid', '--port-file', 'port',
+ '--log', 'distix-backend.log',
+ '--users-file', 'users.yaml'])
vars['pid'] = cat('pid').strip()
vars['port'] = cat('port').strip()