Skip to content

Commit

Permalink
systemd support
Browse files Browse the repository at this point in the history
  • Loading branch information
pvtom committed Jan 8, 2023
1 parent b984a75 commit e24acd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rscp2mqtt.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[Unit]
Description=RSCP2MQTT service
After=network.target
After=systemd-user-sessions.service
After=network-online.target

[Service]
User=pi
Type=forking
WorkingDirectory=/opt/rscp2mqtt
ExecStart=/opt/rscp2mqtt/rscp2mqtt -d
ExecStop=pkill rscp2mqtt
TimeoutSec=30
Restart=on-failure
RestartSec=30
StartLimitInterval=350
StartLimitBurst=10

[Install]
WantedBy=multi-user.target

0 comments on commit e24acd0

Please sign in to comment.