unomi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ghen <m...@mikeghen.com>
Subject Re: Running Unomi, Systemd
Date Sun, 14 Oct 2018 04:46:41 GMT
Ok, good to know. Thanks! Next week I will probably have some question
about how to get this all running on Kubernetes but I'm still working on
figuring out some of the basic features of Unomi like conditions for
searching, rules, and actions.

On Sun, Oct 14, 2018 at 12:44 AM Jean-Baptiste Onofré <jb@nanthrax.net>
wrote:

> 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é <jb@nanthrax.net
> > <mailto:jb@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é
> >     jbonofre@apache.org <mailto:jbonofre@apache.org>
> >     http://blog.nanthrax.net
> >     Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Mime
View raw message