Git Product home page Git Product logo

Comments (7)

sembsa avatar sembsa commented on May 22, 2024 1

Hi i have service:

[Unit]
Description=Strt HomeKit2MQTT

[Service]
ExecStart=/usr/local/bin/homekit2mqtt -p 51829 -v debug
StandardOutput=journal

[Install]
WantedBy=multi-user.target
Alias=homekit2mqtt.service

You need to copy the /etc/systemd/system/homekit2mqtt.service file, paste the code and then type:
sudo systemctl deamon-reload
sudo systemctl enable homekit2mqtt
sudo systemctl start homekit2mqtt

from homekit2mqtt.

raufis27 avatar raufis27 commented on May 22, 2024

What is you OS ? Linux or Mac ?

from homekit2mqtt.

arjan-io avatar arjan-io commented on May 22, 2024

Should have mentioned. I run it on a RPI model 3, using Raspbian Stretch (full install, although I only use it via ssh).

from homekit2mqtt.

barto- avatar barto- commented on May 22, 2024

You can try nohup

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on May 22, 2024

I suggest either to use https://github.com/Unitech/pm2 (pm2 is quite convenient and easy to use, handles also the logfiles and restarts...) or to create a systemd service (see e.g. http://nodesource.com/blog/running-your-node-js-app-with-systemd-part-1/)

from homekit2mqtt.

raufis27 avatar raufis27 commented on May 22, 2024

You can run homekit2mqtt on startup using cron. Do -
crontab -e
@reboot homekit2mqtt [options]

Or
use rc-local [(https://www.raspberrypi.org/documentation/linux/usage/rc-local.md)] to setup startup script.

from homekit2mqtt.

arjan-io avatar arjan-io commented on May 22, 2024

Oke, few options here. Thanks for the responses. I'll close the Issue for now and will reopen if I get stuck. Cheers.

from homekit2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.