Closed grbfst closed 9 months ago
Docker doesn't offer this feature, see: https://stackoverflow.com/questions/27812548/how-to-set-an-environment-variable-in-a-running-docker-container
But you could move your configuration to yaml file and you can change it anytime, just restart neko binary to reread it. https://neko.m1k1o.net/#/getting-started/configuration?id=config-file
Check, how do I restart the binary?
You can restart the whole container or just run supervisorctl restart neko
inside the container.
Or kill neko binary process inside container. It will be automatically restarted.
Thanks, I'm not running in Docker. To restart separate processes I found out you have to run supervisor in a different way: I added below to the supervisord.conf:
[unix_http_server] file=/var/run/supervisor.sock ; (the path to the socket file) chmod=0700 ; sockef file mode (default 0700) [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
to the supervisor startup command I added "-n": ["/usr/bin/supervisord", "-n", "-c", "/etc/neko/supervisord.conf"]
So it runs in the foreground (I can of course change nodaemon=true in the config)
Now I can restart Chrome or Neko separately with supervisorctl restart [program name]
Is there a way to restart Neko so it reads the ENV variables again? Sometimes I need to change the user password (before logging in). Neko stop or the likes don't work.