unomi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Running Unomi, Systemd
Date Sun, 14 Oct 2018 04:35:16 GMT
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message