Hi Michael, You can use Karaf on docker as well (I blogged recently about that).
Please let me know if you have any question about Karaf. Regards JB On 14/10/2018 06:38, Michael Ghen wrote: > Thanks I will give this a try. > > Karaf is new to me, I use mostly docker and kubernetes or install right > on a VM. > > I guess I should be looking more into how to administer Karaf than Unomi > specifically. > > On Sun, Oct 14, 2018 at 12:35 AM Jean-Baptiste Onofré <j...@nanthrax.net > <mailto:j...@nanthrax.net>> wrote: > > Hi, > > You can use the Karaf service wrapper: > > feature:install wrapper > wrapper:install > > It will detect your OS and register Karaf Unomi as service. > > You can take a look on: > http://karaf.apache.org/manual/latest/#_service_wrapper > > Regards > JB > > On 13/10/2018 21:24, Michael Ghen wrote: > > Does anyone have any instructions for running Unomi as a service > on a VM? > > > > I tried running it as a service using systemd but was getting an > error: > > > > Oct 13 19:09:52 unomi karaf[11710]: Error in initialization script: > > /opt/unomi/etc/shell.init.script: String indexOct 13 19:09:52 unomi > > karaf[11710]: karaf@root()> Error executing command: > > java.lang.NullPointerException > > > > I'm just trying to get it running in my development environment, right > > now I can only keep it running by opening a terminal and running > > ./bin/karaf from there. > > > > Here's the systemd config file I made that doesn't seem to be working: > > > > [Unit] > > Description=Unomi Server > > After=network.target > > > > [Service] > > WorkingDirectory=/opt/unomi > > User=root > > Group=root > > Type=simple > > ExecStart=/opt/unomi/bin/karaf > > Restart=on-failure > > RestartSec=5s > > PrivateTmp=true > > > > [Install] > > WantedBy=multi-user.target > > > > -- > Jean-Baptiste Onofré > jbono...@apache.org <mailto:jbono...@apache.org> > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com