Skip to content

Commit

Permalink
Add modbus-proxy.service file (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Damian Wrobel <[email protected]>
  • Loading branch information
dwrobel authored Sep 4, 2024
1 parent 21dcc3d commit f551987
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions systemd/modbus-proxy.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file is part of modbus-proxy.
#
# Copyright 2022 Damian Wrobel <[email protected]>
#
# modbus-proxy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# modbus-proxy is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with modbus-proxy. If not, see <http://www.gnu.org/licenses/>.

[Unit]
Description=ModBus TCP proxy
Documentation=https://github.com/tiagocoutinho/modbus-proxy
After=network.target
ConditionPathExists=/etc/modbus-proxy.yaml

[Service]
Restart=on-failure
ExecStart=modbus-proxy --config-file /etc/modbus-proxy.yaml

[Install]
WantedBy=multi-user.target

0 comments on commit f551987

Please sign in to comment.