# Startup both OH and OH2 on Startup?

**URL:** <https://community.openhab.org/t/startup-both-oh-and-oh2-on-startup/5830>\
**Category:** Runtime\
**Created:** [January 6, 2016, 7:31pm UTC](https://community.openhab.org/t/startup-both-oh-and-oh2-on-startup/5830 "2016-01-06T19:31:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ptmuldoon](https://community.openhab.org/user_avatar/community.openhab.org/ptmuldoon/32/36858_2.png) [@ptmuldoon](https://community.openhab.org/u/ptmuldoon)\
**Post date:** [January 7, 2016, 1:23am UTC](https://community.openhab.org/t/startup-both-oh-and-oh2-on-startup/5830/7 "2016-01-07T01:23:09Z")

</div>

ok, thanks for the help and tips…

But in still working to start testing and learning OH2, is there a start up script that works to stop and start? Currently, I can log into Ubuntu Server via SSH and manually start it, but haven’t figure how to auto run OH2 on a reboot.

I did come across this post here, but couldn’t get the script to work.

> [@Autostart after reboot Raspberry](https://community.openhab.org/t/autostart-after-reboot-raspberry/1961/5):
>
> Hi, I had the problem myself a couple of days ago. That’s the script I’m currently using (adapted from the ones above). You just need to replace the top half of the script provided in the Sample Tricks. #! /bin/sh ### BEGIN INIT INFO # Provides: openhab # Required-Start: $remote\_fs $syslog # Required-Stop: $remote\_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: OpenHAB Daemon ### END INIT INFO # Author: Thomas Brettinger # Do NOT "set -…

---

_[View the full topic](https://community.openhab.org/t/startup-both-oh-and-oh2-on-startup/5830)._
