Skip to content

systemd example #77

@KodinLanewave

Description

@KodinLanewave

I just deployed your tool as a systemd service on Ubuntu. Since I have an example, this may be helpful for others:

config file is copied to /etc/default/renogy-bt
service file is copied to /lib/systemd/system/renogy-bt.service

Service file contents:

[Unit]
Description=Renogy Bluetooth Service
After=multi-user.target

[Service]
ExecStart=python3 /opt/renogy-bt/example.py /etc/default/renogy-bt
Restart=always
Type=simple

[Install]
WantedBy=multi-user.target

Works perfectly, logs to systemd logger under renogy-bt unit; to check logs, use journalctl -u renogy-bt
Don't forget to run systemctl daemon-reload after deploying all the files in the right places, then systemctl enable renogy-bt and systemctl start renogy-bt to enable at-boot and start the service.

Thanks for an excellent tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions