Autostart with systemd

tur's Avatar

tur

05 Nov, 2015 10:23 AM

Hi!
This may be useful for someone. If you'd like to make RhodeCode start automatically after system restart, follow instructions in https://docs.rhodecode.com/RhodeCode-Control/tasks/supervisor.html#startup-script . After this it's possible to create file /etc/systemd/system/rhodecode.service with the following content:
___
[Unit]
Description=Rhodecode
[Service]
Type=forking
User=$user
ExecStart=/path/to/.rccontrol-profile/bin/rccontrol-self-init
[Install]
WantedBy=multi-user.target
___
(where $user - is a user profile, used when calling the startup scripts as was used to install RhodeCode Control)
and save it.
After this you should enable and start it
systemctl enable rhodecode
systemctl start rhodecode
This is the simplest way to start RhodeCode automatically after reboot.

  1. Support Staff 1 Posted by develop on 05 Nov, 2015 10:34 AM

    develop's Avatar

    Hi Tur,

    Thanks for sharing your start-up script. We will add it as an example to our documentation to help others in their configuration.

    Cheers,
    Oliver

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac