Add systemd start/stop for transmission.service

This commit is contained in:
Vladan Popovic 2024-10-27 01:39:20 +02:00
parent 385694da91
commit 66acf6b421
7 changed files with 85 additions and 92 deletions

View file

@ -0,0 +1,9 @@
{% block content %}
{% if is_active %}
<h3>Transmission is running!</h3>
<button hx-post="/transmission/stop" hx-target="#content">Stop now!</button>
{% else %}
<h3>Transmission is stopped!</h3>
<button hx-post="/transmission/start" hx-target="#content">Start now!</button>
{% endif %}
{% endblock %}