John Carver's picture

I have a situation where I need to patch a sysv init script and then get systemd to recognize the change.  The change has been applied to /etc/init.d/lxc, but is not being recognized by 'service restart lxc'.  Apparently the change must also be applied to /usr/lib/x86_64-linux-gnu/lxc/lxc-autostart-helper, which appears to be a verbatim copy of the original /etc/init.d/lxc.

I tried copying the patched sysv init script to overwrite the lxc-autostart-helper and then ran 'systemctl daemon-reload'.  This seemed to work okay, but I doubt it is the proper way to accomplish the task.

Information is free, knowledge is acquired, but wisdom is earned.