public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/autossh] epel10: Forgot to add the files from patch
@ 2026-10-11 14:41 Fabio Alessandro Locati
  0 siblings, 0 replies; only message in thread
From: Fabio Alessandro Locati @ 2026-10-11 14:41 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/autossh
Branch : epel10
Commit : 4b1c7e885324a94e925c40ac8fca7fd4e5fe5bd1
Author : Fabio Alessandro Locati <fabio@locati.cc>
Date   : 2016-04-08T10:45:15+01:00
Stats  : +39/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/autossh/c/4b1c7e885324a94e925c40ac8fca7fd4e5fe5bd1?branch=epel10

Log:
Forgot to add the files from patch

---
diff --git a/README.service b/README.service
new file mode 100644
index 0000000..5b7d74f
--- /dev/null
+++ b/README.service
@@ -0,0 +1,26 @@
+The autossh systemd service uses configuration files from the
+/etc/autossh directory. Each configuration file should define a single
+variable OPTIONS, which contains all command line options to pass to
+the respective autossh service instance. The configuration file is the
+name of the service instance suffixed with .conf, for example
+autossh@myconnection.service loads its configuration from the
+/etc/autossh/myconnection.conf file. For example (all on one line,
+wrapped here for readability):
+
+    OPTIONS=-M 0 -NT
+        -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3"
+        -l autossh -i /path/to/id_rsa -L 7474:127.0.0.1:7474
+        srv.example.com
+
+Note that it is not necessary to configure everything related to the
+actual connection in $OPTIONS, instead just as with regular ssh(1)
+use, the -F option can be used there to load them from separate
+configuration files. For example:
+
+    OPTIONS=-M 0 -N -F /path/to/myconnection_ssh_config srv.example.com
+
+The services run as the autossh user by default. This means that
+functionality requiring root access, for example forwarding local
+privileged ports, is not available to them. If root functionality is
+required, it can be accomplished through the systemd unit override
+mechanisms, see systemd.unit(5).

diff --git a/autossh@.service b/autossh@.service
new file mode 100644
index 0000000..cb4039c
--- /dev/null
+++ b/autossh@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=autossh: %I
+Documentation=file:///usr/share/doc/autossh/README.service man:autossh(1)
+After=network.target
+
+[Service]
+User=autossh
+Environment="AUTOSSH_GATETIME=0"
+EnvironmentFile=/etc/autossh/%i.conf
+ExecStart=/usr/bin/autossh $OPTIONS
+
+[Install]
+WantedBy=multi-user.target

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-11 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 14:41 [rpms/autossh] epel10: Forgot to add the files from patch Fabio Alessandro Locati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox