Coder Social home page Coder Social logo

Comments (10)

yuezh avatar yuezh commented on June 3, 2024

@rjschwei What's the version of SUSE and waagent?

from walinuxagent.

rjschwei avatar rjschwei commented on June 3, 2024

2.0.11

Any distribution, SLES 11 SP3, or SLES 12

from walinuxagent.

yuezh avatar yuezh commented on June 3, 2024

@rjschwei I didn't meet the issue you descripted on SLES 11 SP3. Here are my steps:
service waagent start
exit
The ssh session ended normally.

from walinuxagent.

bear454 avatar bear454 commented on June 3, 2024

@yuezh You can reproduce by stopping any running waagent on a machine, and running

waagent -daemon

from walinuxagent.

SuperScottz avatar SuperScottz commented on June 3, 2024

@yuezh Could you please have a try to see if it could be reproduced?

from walinuxagent.

szarkos avatar szarkos commented on June 3, 2024

The agent doesn't actually "daemonize" at all, in that it doesn't do the typical double-fork thing and detach from the console when it enters the Agent.Run() loop. That's why the agent still runs in the foreground when you run "waagent -daemon," and why the '&' is required in the init scripts.

The trouble is that even running the agent in the background using the '&' does properly detach the agent from the terminal. So for example, trying to start the agent remotely causes a hang:

ssh [email protected] 'sudo /usr/sbin/waagent -daemon &'
....

from walinuxagent.

yuezh avatar yuezh commented on June 3, 2024

We will implement real "daemonize" in version 2.1

from walinuxagent.

ahmetb avatar ahmetb commented on June 3, 2024

@yuezh does 2.1 fix this issue? If so, please close.

from walinuxagent.

hglkrijger avatar hglkrijger commented on June 3, 2024

closing, due to lack of activity. if this is still a feature request, please reopen.

from walinuxagent.

rjschwei avatar rjschwei commented on June 3, 2024

I tested 2.1 with SLES 11 SP4 where this is aproblem as SysV init handles file descriptors differently than systemd (SLES 12 and later) and observed the same problematic behavior.

from walinuxagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.