Bug#911972: greenbone-security-assistant Default-Start contains no runlevels
On Tue, 19 Nov 2019 01:28:10 +0100 wrote: > My current work-around is to manually stop the GSA service and > its dependencies, after they get restarted each time. A more severe > workaround is to use systemctl masking: > > % sudo systemctl mask greenbone-security-assistant > > However, this prevents the service from being started manually. > To start manually: > > % sudo systemctl unmask greenbone-security-assistant > % sudo systemctl start greenbone-security-assistant > > Then, of course, it has to be re-masked when done being used, to > prevent it from being auto-started again. > > To improve on this, I'm trying to disable the dependency. > Not being an expert at systemd, I'm not sure if this will have > the intended effect, or possibly adverse effects: > % sudo rm > /etc/systemd/system/multi-user.target.wants/greenbone-security-assistant.service This has been working, and I haven't noticed any adverse effects.
Bug#911972: greenbone-security-assistant Default-Start contains no runlevels
My system is also affected. Running debian 10.2, with greenbone-security-assistant 7.0.3+dfsg.1-1. I get the following error, with enable or disable actions: % sudo systemctl disable greenbone-security-assistant Synchronizing state of greenbone-security-assistant.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable greenbone-security-assistant update-rc.d: error: greenbone-security-assistant Default-Start contains no runlevels, aborting. If I manually edit /etc/init.d/greenbone-security-assistant, to replace this line: # Default-Start: ...with this one: # Default-Start: 2 3 4 5 ...then I get the following error instead: % sudo systemctl disable greenbone-security-assistant Synchronizing state of greenbone-security-assistant.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable greenbone-security-assistant update-rc.d: error: no runlevel symlinks to modify, aborting! My current work-around is to manually stop the GSA service and its dependencies, after they get restarted each time. A more severe workaround is to use systemctl masking: % sudo systemctl mask greenbone-security-assistant However, this prevents the service from being started manually. To start manually: % sudo systemctl unmask greenbone-security-assistant % sudo systemctl start greenbone-security-assistant Then, of course, it has to be re-masked when done being used, to prevent it from being auto-started again. To improve on this, I'm trying to disable the dependency. Not being an expert at systemd, I'm not sure if this will have the intended effect, or possibly adverse effects: % sudo rm /etc/systemd/system/multi-user.target.wants/greenbone-security-assistant.service
Bug#911972: greenbone-security-assistant Default-Start contains no runlevels
Package: greenbone-security-assistant Version: 7.0.3+dfsg.1-1 Severity: normal Dear Maintainer, Trying to prevent greenbone-security-assistant from starting by default, fails with this error: # systemctl disable greenbone-security-assistant Synchronizing state of greenbone-security-assistant.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable greenbone-security-assistant update-rc.d: error: greenbone-security-assistant Default-Start contains no runlevels, aborting. -- System Information: Debian Release: 9.5 APT prefers stable APT policy: (600, 'stable'), (550, 'proposed-updates'), (500, 'oldstable'), (450, 'oldstable-proposed-updates'), (420, 'testing'), (200, 'unstable'), (160, 'experimental'), (150, 'oldoldstable'), (140, 'oldoldstable-proposed-updates') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.17.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages greenbone-security-assistant depends on: ii greenbone-security-assistant-common 7.0.3+dfsg.1-1 ii libc62.27-6 ii libgcrypt20 1.8.3-1 ii libglib2.0-0 2.50.3-2 ii libgnutls30 3.5.19-1 ii libmicrohttpd12 0.9.59-1 ii libopenvas9 9.0.3-1+b1 ii libxml2 2.9.4+dfsg1-2.2+deb9u2 ii libxslt1.1 1.1.29-2.1 ii lsb-base 9.20161125 greenbone-security-assistant recommends no packages. greenbone-security-assistant suggests no packages. -- no debconf information