Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 9.7 - missing sysvinit support #202

Open
Pls opened this issue Aug 5, 2019 · 3 comments
Open

Debian 9.7 - missing sysvinit support #202

Pls opened this issue Aug 5, 2019 · 3 comments

Comments

@Pls
Copy link

Pls commented Aug 5, 2019

Found pretty much same issue about this #35, but opening new one as it's closed and can't be re-opened easily.

Describe the problem

Can't install do-agent on Debian 9.7 with sysvinit ini system.

Steps to reproduce

Have Debian 9.7 with sysvinit and try to install do-agent. Throws this error:

boa:~# sudo ./install.sh 
Cleaning up old sources...OK
Verifying machine compatability...OK
Verifying compatability with script...OK
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'do-agent' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing apt repository...
Installing gpg key...OK
Selecting previously unselected package do-agent.
(Reading database ... 70509 files and directories currently installed.)
Preparing to unpack .../do-agent_3.5.5_amd64.deb ...
Unpacking do-agent (3.5.5) ...
Setting up do-agent (3.5.5) ...
Detecting SELinux
SELinux not enforced
Unknown init system. Exiting...
dpkg: error processing package do-agent (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 do-agent
E: Sub-process /usr/bin/dpkg returned an error code (1)

Expected behavior

do-agent should support all init systems - systemd, sysvinit, upstart. Seems that it's only supporting systemd and upstart. It is seen when viewing this code part -

if command -v systemctl >/dev/null 2>&1; then

System Information

Distribution and version: Debian 9.7 x64

do-agent information:

/opt/digitalocean/bin/do-agent --version:

boa:~# /opt/digitalocean/bin/do-agent --version

do-agent (DigitalOcean Agent)

Version:     3.5.5
Revision:    8fe5d9e
Build Date:  Thu Aug  1 17:36:22 UTC 2019
Go Version:  go1.12.1
Website:     https://github.com/digitalocean/do-agent

Copyright (c) 2019 DigitalOcean, Inc. All rights reserved.

This work is licensed under the terms of the Apache 2.0 license.
For a copy, see <https://www.apache.org/licenses/LICENSE-2.0.html>.

apt-cache policy do-agent:

boa:~# apt-cache policy do-agent
do-agent:
  Installed: 3.5.5
  Candidate: 3.5.5
  Version table:
 *** 3.5.5 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
        100 /var/lib/dpkg/status
     3.5.4 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     3.5.2 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     3.5.1 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     3.3.1 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     3.2.1 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     3.0.5 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.2.4 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.2.3 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.2.1 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.2.0 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.1.3 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.0.2 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.0.1 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     2.0.0 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
     1.1.3 500
        500 http://repos.insights.digitalocean.com/apt/do-agent main/main amd64 Packages
@Danyc0
Copy link

Danyc0 commented Oct 18, 2019

I'm having exactly the same issue on Debian 10.1 with sysvinit, +1

@dariosusman
Copy link

Still going on on Debian 10.4 with sysvinit.

@dariosusman
Copy link

Hi!
This is still on going! And I don't want to use systemd :\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants