On Sun, Nov 09, 2025 at 06:58:07PM +0200, Lars Noodén via Dng wrote: > On 11/9/25 18:48, tito via Dng wrote:
> > Cisco Secure Client Support for Linux
> > Linux Requirements
> [snip]
>
> Just a guess, but would it be possible to disassemble the installation
> script's package and comment out the systemd parts and then replace the unit
> file manually with an appropriate service script? I followed the link but
> could not spot the actual package to check there.
>
I have now collected another copy of the installation script and it is just
shell.
At first sight it should be fairly easy to modify it, at least for
someone who knows a bit about systemd. Of course most of the people here
are experts in that: so far I have avoided getting too deeply involved.
So far as I can see it is only installing the service scripts, but I
guess that I won't know if it is using some systemd API until later.
I see
SYSTEMD_CONF_DIR="/etc/systemd/system"
[.....]
if [ -z "${TESTINIT##*"systemd"*}" ]; then
echo systemctl daemon-reexec >> /tmp/${LOGFNAME}
systemctl daemon-reexec >> /tmp/${LOGFNAME} 2>&1
# try stop vpnagentd service first in case user is upgrading from old version which doesn't have the proper unintall script
echo systemctl stop ${SYSTEMD_CONF} >> /tmp/${LOGFNAME}
systemctl stop ${SYSTEMD_CONF} >> /tmp/${LOGFNAME} 2>&1
echo systemctl disable ${SYSTEMD_CONF} >> /tmp/${LOGFNAME}
systemctl disable ${SYSTEMD_CONF} >> /tmp/${LOGFNAME} 2>&1
I guess that I should be able to rewrite that section with a bit of
effort. I suppose all of you here who have had to rewrite such stuff
repeatedly would do it in a few minutes... :-)