Widelands should never run as a daemon

Bug #1330068 reported by SirVer on 2014-06-14
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

--dedicated forks and puts Widelands in the background. That is the wrong approach - Widelands should always stay in the foreground. If background is desired, something like upstart should be used to launch it as a system process.

To fix this bug, forking must be removed from wlapplicatino.cc.

Related branches

SirVer (sirver) on 2014-06-14
tags: added: lowhangingfruit
SirVer (sirver) on 2014-06-22
tags: added: cleanups
removed: cleanup
SirVer (sirver) wrote :

Setting to incomplete for bug sweeping.

Changed in widelands:
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
SirVer (sirver) on 2015-01-28
Changed in widelands:
status: Expired → Confirmed
Jens Beyer (qcumber-some) wrote :

Bug 1416864 shows some issues with --dedicated. One of them is, that it does not fork.

What's the real status of this bug?

SirVer (sirver) wrote :

Forking is a bad, bad idea. Not even servers do it these days anymore. The correct approach is to capture the console and have the process be launched and controlled by something like http://upstart.ubuntu.com/ - not to fork into the background.

Hans Joachim Desserud (hjd) wrote :

I realize upstart was mentioned as an example, but please note that Ubuntu is currently moving away from it [1] in favor of systemd. Actually, despite some discussion around it, a lot of distributions have or are switching to systemd as their default init system[2]. If someone wants to create a service for running the dedicated server, that might be a place to start looking.

[1] http://www.markshuttleworth.com/archives/1316
[2] http://en.wikipedia.org/wiki/Systemd#Adoption_and_reception

SirVer (sirver) on 2016-02-06
Changed in widelands:
assignee: nobody → SirVer (sirver)
SirVer (sirver) wrote :

--dedicated is gone, so we never daemonize widelands ever.

Changed in widelands:
status: Confirmed → Fix Committed
assignee: SirVer (sirver) → nobody
milestone: none → build19-rc1
GunChleoc (gunchleoc) on 2016-10-10
tags: added: network
removed: dedicated
GunChleoc (gunchleoc) on 2016-10-25
Changed in widelands:
status: Fix Committed → Fix Released
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints