Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28941 - Add daemontools support to init script for fcron
Summary: Add daemontools support to init script for fcron
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on: 28294
Blocks:
  Show dependency tree
 
Reported: 2003-09-16 23:22 UTC by Mark Francis
Modified: 2005-08-03 13:04 UTC (History)
6 users (show)

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


Attachments
Patch for fcron init script to support daemontools if installed (fcron-patch,1.40 KB, patch)
2003-09-16 23:24 UTC, Mark Francis
Details | Diff
/var/daemontools/fcron/run (run,102 bytes, text/plain)
2003-09-16 23:24 UTC, Mark Francis
Details
/var/daemontools/fcron/log/run (run,115 bytes, text/plain)
2003-09-16 23:25 UTC, Mark Francis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Francis 2003-09-16 23:22:45 UTC
This patch adds daemontools support to the fcron init script. daemontools
support also requires 2 additional executable files:
/var/daemontools/fcron/run
/var/daemontools/fcron/log/run

daemontools does not need to be installed and it's use is optional.

Default is to use daemontools if it is installed. This seems reasonable.
Comment 1 Mark Francis 2003-09-16 23:24:22 UTC
Created attachment 17853 [details, diff]
Patch for fcron init script to support daemontools if installed
Comment 2 Mark Francis 2003-09-16 23:24:51 UTC
Created attachment 17854 [details]
/var/daemontools/fcron/run
Comment 3 Mark Francis 2003-09-16 23:25:14 UTC
Created attachment 17855 [details]
/var/daemontools/fcron/log/run
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-17 13:47:43 UTC
I wish you guys will try and make up your minds.  First its to not use
the 'evil init.d' whatever that means, now you want support to some 
rc-scripts.  I am not really for hacks like this - either we add some
sort of daemontools support back to runscript.sh so that we do not need
to add ugly hacks like this to every rc-script, or you use daemontools
without the rc-script like the original cry went out for.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-17 14:10:49 UTC
Bit harsh after reading it again, but I do not think hacking the same
basic thing to a dozen scripts is very productive.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-17 14:24:28 UTC
Ok, I read new comments to bug #28294 =)  Sorry, will try to read all the
new load of bugs before commenting next time.  It is fairly late though from
work - sorry.

Anyhow, I still think duplicating code is not the way.  Doing some runscript.sh
and functions.sh support code changes will be the better way.  I will try to
get an patch out for review as soon as possible.
Comment 7 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-19 05:23:28 UTC
Yes, sorry azarah. I think we had a bit of
misunderstanding there to begin with. Mark
managed to convince me about what you were
originally trying to convey.

I agree that adding some generic mechanism
for init.d is the right thing to do. I look
forward to seeing your patch :-).
Comment 8 petre rodan (RETIRED) gentoo-dev 2004-10-26 11:15:21 UTC
hi.

please have a look at this ebuild:
http://dev.gentoo.org/~kaiowas/portage_overlay/sys-apps/svc-scripts/svc-scripts-0.0.3-r1.ebuild

this would solve the daemontools integration with gentoo in a very simple way.
no need to hack a lot of init scripts.

I would be happy to maintain this new ebuild and add scripts received/needed by users. Please tell me if it suits your needs, and I will commit it to portage.


* description

it's a sys-apps/supervise-scripts rewrite with full selinux support.
it also has a long list of supervise scripts provided as samples (IUSE="withsamplescripts")

* use

svcinit <service_name> <command>
<service_name> is one of the services from /services or /var/services (paths have been inherited from supervise-scripts for maximum compatibility), or the 'all' keyword
<command> is one of start, stop, restart, status, add, remove

* compatibility

compatible with sys-apps/supervise-scrips
maximum ease of use in a selinux environment (run_init doesn't have to be used, 'status' command actually works compared to svc-status)

* needs

a line in use.local.desc:
sys-apps/svc-scripts:withsamplescripts - Provides a number of supervise scripts as examples

Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-07-21 16:26:55 UTC
So, WONTFIX? Really stale bug.
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-22 01:03:20 UTC
Petre, you still have that ebuild of yours around ?  Sorry I did not comment,
but it seems like in the time I was MIA.
Comment 11 petre rodan (RETIRED) gentoo-dev 2005-07-22 01:22:02 UTC
my ebuild has moved to sys-process/supervise-scripts in the public portage tree

Comment 12 petre rodan (RETIRED) gentoo-dev 2005-07-22 01:39:14 UTC
I ment sys-process/daemontools-scripts

Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-03 13:04:56 UTC
In sys-process/daemontools-scripts.