Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500980 - net-misc/stuntman - updated init script
Summary: net-misc/stuntman - updated init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 13:09 UTC by Jaco Kroon
Modified: 2014-02-18 19:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stuntman - init script (stuntman,476 bytes, text/plain)
2014-02-11 13:10 UTC, Jaco Kroon
Details
initd.v2 (initd.v2,284 bytes, text/plain)
2014-02-11 13:20 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
confd file (stuntman-confd,403 bytes, text/plain)
2014-02-11 13:30 UTC, Jaco Kroon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2014-02-11 13:09:38 UTC
I've updated (improved) the stuntman init script to include support for passing custom parameters from conf.d/ as well as typed up a sample confd file, both of which can be included as a -r1 for stuntman.  Production tested on two machines.

Reproducible: Always
Comment 1 Jaco Kroon 2014-02-11 13:10:37 UTC
Created attachment 370144 [details]
stuntman - init script
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-11 13:20:52 UTC
Created attachment 370146 [details]
initd.v2

Excessively improved init script which uses openrc's template system (no, the lack of start/stop functions is no mistake).
If you need explanation of the used variables you can refer to "man runscript" or simply ask me :)
Comment 3 Jaco Kroon 2014-02-11 13:30:38 UTC
Created attachment 370152 [details]
confd file

This can be installed as /etc/conf.d/stuntman
Comment 4 Jaco Kroon 2014-02-11 14:29:56 UTC
I'm happy with the init script from Lars, didn't test it but I've recently started writing my own init scripts in similar fashion, was just too lazy to completely convert the stuntman one :).

Looks good thanks Lars.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-18 19:11:59 UTC
+*stuntman-1.2.6-r1 (18 Feb 2014)
+
+  18 Feb 2014; Lars Wendler <polynomial-c@gentoo.org>
+  +stuntman-1.2.6-r1.ebuild, +files/stuntman.confd, +files/stuntman.initd:
+  Revbump to add rewritten init script along with a confd file. Thanks to Jaco
+  Kroon (bug #500980). Permission kindly granted by Chainsaw.
+