To start the webapp on a X-less server it's possible to use the parameter --listen
and then connect from a client with X to it.
How can I start the webapp on all annex repos on this server like on a client with assistant --autostart
? Would be nice to start the assistant on all configured repos which listens on a defined port, f.e. git annex assistant --autostart --listen 0.0.0.0:8888
. It would be even nicer to have a parameter to chose a autostart configuration file, f.e. git annex assistant --autostart --autostart-config /etc/git-annex/autostart --listen 0.0.0.0:8888
, so this could end up in a real server application, a init script would be easy to write...
Well, it would be possible to add a configuration setting in the repository that tells the assistant what address:port to listen on.
But maybe it would be better to not use
assistant --autostart
in your situation? That command is basically the same as this shell script:So you can write similar shell scripts that start the webapp with whatever options you like.
Hi Joey,
Could you help out with writing an init.d script to safely start and stop the webapp on a headless server? I made an attempt below based on examples from the internet, but have no idea if it will work.