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

Start instances with ineo on reboot #54

Open
hodgigre opened this issue Oct 19, 2019 · 2 comments
Open

Start instances with ineo on reboot #54

hodgigre opened this issue Oct 19, 2019 · 2 comments

Comments

@hodgigre
Copy link

I'm pulling my hair out. I've spent hours trying to figure out how to start instances via ineo on reboot. BTW, ineo is exactly what I was looking for to manage multiple instances on a single machine. Sweet! Thanks!!!

Anyway, I'm on a very basic new Debian 9 install.

crontab @reboot doesn't appear to work. I read others have issues with reboot in cron for a user (vs. root).

I resorted to creating rc.local service like here. https://www.itechlounge.net/2017/10/linux-how-to-add-rc-local-in-debian-9/ It works, but I don't appear to be able to get the environment set correctly to get it to recognize my databases.

The seemingly simple things can be sooo time consuming. Hoping you might have a quick suggested approach that you've worked with. It's not an ineo "issue" but hoping you can help.

Thanks again.

@numericOverflow
Copy link

@hodgigre - Did you ever get this ironed out? I'm looking at using ineo, but need instances to start at boot as well so they act as if they are services.

@ogmueller
Copy link
Collaborator

Have you tried to use ineo's feature to implement a service as well?

When you enter ./ineo help install, it will show you:

$ ./ineo help install

  USAGE:
    install [options]

  DESCRIPTION:
    Install ineo

    Don't use this command if you already have ineo installed and working
    correctly. If root user installs ineo on a systemd OS, a systemd
    service will also be install to support autostart on instances.

  OPTIONS:
    -d <directory_name>  Directory name (absolute path) where ineo will be
                         installed

                         Default: ~/.ineo or /var/lib/ineo if using -S

    -S                   Install ineo as a service (only on systemd OSes)

Using the -S parameter will install a service to systemd, if supported by OS.

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

3 participants