Not logged in - Login / Register
View History

Howto: Make McMyAdmin start automatically on boot (Linux)

Getting started

This guide isn't dependent on any particular distribution, so the exact instructions may vary.

The only prerequisite is that you have a cron daemon installed and running (most distributions do by default) and that you have screen and nano installed (These may not be installed by default, but they are common packages that can be installed via your package manager)

This guide assumes you have correctly followed the standard McMyAdmin Linux installation instructions, and have McMyAdmin installed as a non-root user in ~/McMyAdmin

Editing your crontab

First you start editing your crontab by running crontab -e - It may prompt for you to chose a text editor, in which case chose nano.

Using the editor, add the following line:

@reboot cd ~/McMyAdmin && screen -dmS McMyAdmin ./MCMA2_Linux_x86_64

Then save and exit (ctrl+x in nano) to apply your changes.

Now every time the machine boots, McMyAdmin will start silently in the background as the user you installed it as.

Accessing the session after booting

If you need to access the session for any reason after booting, you can reconnect to your session by running

screen -x