Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure that production containers are autostarted #130

Open
tingox opened this issue Jul 2, 2019 · 1 comment
Open

make sure that production containers are autostarted #130

tingox opened this issue Jul 2, 2019 · 1 comment

Comments

@tingox
Copy link
Contributor

tingox commented Jul 2, 2019

Currently we have three containers on bitnode, one for mediawiki and two for wordpress. However, currently they are not configured to autostart on boot of bitnode:

tingo@bitnode:~$ sudo lxc-info -n mediawiki -c lxc.start.auto -c lxc.group
lxc.start.auto = 0
lxc.group =
tingo@bitnode:~$ sudo lxc-info -n mysql -c lxc.start.auto -c lxc.group
lxc.start.auto = 0
lxc.group =
tingo@bitnode:~$ sudo lxc-info -n wordpress -c lxc.start.auto -c lxc.group
lxc.start.auto = 0
lxc.group =

this probably should be changed in the ansible setup?

@tingox
Copy link
Contributor Author

tingox commented Oct 23, 2019

testing manually:

tingo@bitnode:~$ sudo lxc-info -n mediawiki -c lxc.start.auto -c lxc.group
lxc.start.auto = 1
lxc.group =

autostart flag set. Stop container and check state

tingo@bitnode:~$ sudo lxc-stop -n mediawiki
tingo@bitnode:~$ sudo lxc-ls --fancy
NAME      STATE   AUTOSTART GROUPS IPV4 IPV6 
mediawiki STOPPED 1         -      -    -    
mysql     STOPPED 0         -      -    -    
wordpress STOPPED 0         -      -    -    
tingo@bitnode:~$ sudo lxc-autostart --list 
mediawiki 0

that worked. Now try to autostart it

tingo@bitnode:~$ sudo lxc-autostart
tingo@bitnode:~$ sudo lxc-ls --fancy
NAME      STATE   AUTOSTART GROUPS IPV4       IPV6                                  
mediawiki RUNNING 1         -      10.13.39.2 2a01:7e01:e001:e1:3a04:ccff:fe3f:7bc0 
mysql     STOPPED 0         -      -          -                                     
wordpress STOPPED 0         -      -          -                                     

worked too. Now it remains to make this ansible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant