Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions to create a systemd service for iMeshDashboard #7

Open
audric opened this issue Mar 9, 2021 · 0 comments
Open

Instructions to create a systemd service for iMeshDashboard #7

audric opened this issue Mar 9, 2021 · 0 comments

Comments

@audric
Copy link
Collaborator

audric commented Mar 9, 2021

These infos could be either automated with the install or simply added to the documentation.
Keep it mind that while the service is running no commandline meshtastic **** can be run as the communication with the board is locked.

Anyway here are the instructions..

As root, create /etc/systemd/system/iMeshDashboard.service

[Unit]
Description=iMeshDashboard service
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/usr/local/bin/iMeshDashboard"
ExecStop=/bin/sh -c "killall -9 iMeshDashboard"
[Install]
WantedBy=multi-user.target

As root enable the new service
systemctl enable iMeshDashboard

The start it
systemctl start iMeshDashboard

You might wnat to ctrl+c after a few seconds

You can control its status via
systemctl status iMeshDashboard

And stop it with
systemctl stop iMeshDashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant