Replace systemd script with init script
Sorin Srbu
sorin.srbu at ki.se
Fri May 3 06:15:06 UTC 2024
On tor, 2024-05-02 at 15:37 +0100, Colin Law wrote:
> On Wed, 1 May 2024 at 21:52, Helmut Schneider via ubuntu-users
> <ubuntu-users at lists.ubuntu.com> wrote:
> >
> > Hi,
> >
> > I need to replace a systemd script with an init script. I know I can
> > remove the existing one by
> >
> > SERVICE=$MY_SERVICE
> > sudo systemctl disable $SERVICE
>
> None of the rest should be necessary. Once you have disabled it then
> it will not run automatically. An upgrade to the package should not
> re-enable it, that would be bad form.
Hello,
I've seen the unattended-upgrades daemon being reenabled occasionally on
some of our systems. Can't tell if that was on an upgrade or just a regular
update though.
Was looking to do some other stuff on a handfull of servers, when I noticed
some of them had the 6.5 kernel IIRC, but had no recollection of having seen
it being installed at the last scheduled update routine.
A closer check on other servers showed the unattended-upgrades daemon was
running, although we routinely disable it at fresh installs.
--
Sorin Srbu
Drifttekniker, Serverdrift
Karolinska Institutet Universitetsbibliotek
Enheten för teknikstöd och bildproduktion,
Avdelningen för Verksamhetsstöd
Tele: 08-524 84166
# They say you can't buy happiness, but you can buy a
# motorcycle, and that's pretty damn close!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240503/2bc0fb06/attachment.sig>
More information about the ubuntu-users
mailing list