Bug 197387 - [MAINTAINER] games/minecraft-server: Add support for running as a service
Summary: [MAINTAINER] games/minecraft-server: Add support for running as a service
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: John Marino
URL:
Keywords: patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-02-07 13:37 UTC by Jonathan Price
Modified: 2015-03-01 22:23 UTC (History)
1 user (show)

See Also:


Attachments
output from SVN patch (4.29 KB, patch)
2015-02-07 13:37 UTC, Jonathan Price
no flags Details | Diff
Output from portlint -AC (629 bytes, text/plain)
2015-02-07 13:37 UTC, Jonathan Price
no flags Details
Output from poudriere testport (20.63 KB, text/plain)
2015-02-07 13:37 UTC, Jonathan Price
no flags Details
Output from SVN patch (4.52 KB, patch)
2015-02-07 14:35 UTC, Jonathan Price
freebsd: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Price 2015-02-07 13:37:12 UTC
Created attachment 152663 [details]
output from SVN patch

Due to popular demand, I have added a new build option, "DAEMON". This adds an entry to rc.d to allow running minecraft_server as a service.

I have made this option disabled by default, as it adds a dependency on tmux.

It has the following options:
start
stop
restart
console (displays the interactive server console)
status

I have attached an output of portlint -AC and a poudriere testport build log.

I have had no issues so far with upgrading from the current version or installing from scratch.
Comment 1 Jonathan Price 2015-02-07 13:37:36 UTC
Created attachment 152664 [details]
Output from portlint -AC
Comment 2 Jonathan Price 2015-02-07 13:37:59 UTC
Created attachment 152665 [details]
Output from poudriere testport
Comment 3 Jonathan Price 2015-02-07 14:35:31 UTC
Created attachment 152668 [details]
Output from SVN patch

Bumped PORTREVISION.
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2015-02-16 05:41:17 UTC
Great issue report Jonathan!
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-03-01 22:21:53 UTC
A commit references this bug:

Author: marino
Date: Sun Mar  1 22:21:10 UTC 2015
New revision: 380231
URL: https://svnweb.freebsd.org/changeset/ports/380231

Log:
  games/minecraft-server: Add support for running as a service

  PR:		197387
  Submitted by:	maintainer (Jonathan Price)

Changes:
  head/games/minecraft-server/Makefile
  head/games/minecraft-server/files/minecraft.in
  head/games/minecraft-server/files/pkg-message.in
Comment 6 John Marino freebsd_committer freebsd_triage 2015-03-01 22:23:59 UTC
Thanks!