On Fri, 1 May 2015 21:49, Andrei Borzenkov wrote:
On Fri, 1 May 2015 19:57:52 +0200 Jan Engelhardt wrote:
On Friday 2015-05-01 19:42, Greg Freemyer wrote:
It has a service file that is designed to be installed immediately via zypper and then manually edited. That works until you re-install the package, at which point it replaces my edits with the virgin service file.
Your edits belong into /etc/systemd/system/autossh.service.d/my.conf
[Service] ExecStart=newcommandline
It probably should be
ExecStart= ExecStart=new command line
otherwise it will be added in addition to existing command line.
…do _not_ edit /usr/lib/systemd/ manually ;-)
Question: Could the autossh package contain this file: "/etc/systemd/system/autossh.service.d/my.conf" with the content: [code] [Service] ExecStart= ExecStart=new valid autossh command line here [/code] and have the relevant notice made in the man-page? That way the idea to edit the main service file would be much better supressed than otherwise. Thanks for the consideration. - Yamaban.