Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemontools-run: update to 20230903.
pkgsrc changes: - Create a /service symlink, if possible, pointing to ${VARBASE}/service - Change default rc.d svscan_servicedir to "/service" - Allow daemontools-encore to satisfy the dependency - Move SMF configuration here (from daemontools)
- Loading branch information
Showing
5 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# $NetBSD: DEINSTALL,v 1.1 2023/09/04 17:51:10 schmonz Exp $ | ||
|
||
case "${STAGE}" in | ||
|
||
DEINSTALL) | ||
${RM} -f /service | ||
|
||
;; | ||
|
||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# $NetBSD: INSTALL,v 1.1 2023/09/04 17:51:10 schmonz Exp $ | ||
|
||
VARBASE=@VARBASE@ | ||
|
||
case "${STAGE}" in | ||
|
||
POST-INSTALL) | ||
${LN} -s ${VARBASE}/service /service | ||
|
||
;; | ||
|
||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | ||
<service_bundle type="manifest" name="export"> | ||
<service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1"> | ||
<create_default_instance enabled="false"/> | ||
<single_instance/> | ||
<dependency name="network" grouping="require_all" restart_on="error" type="service"> | ||
<service_fmri value="svc:/milestone/network:default"/> | ||
</dependency> | ||
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> | ||
<service_fmri value="svc:/system/filesystem/local"/> | ||
</dependency> | ||
<exec_method type="method" name="start" exec="@PREFIX@/bin/svscanboot" timeout_seconds="60"> | ||
<method_context> | ||
<method_environment> | ||
<envvar name="PATH" value="@PREFIX@/sbin:@PREFIX@/bin:/sbin:/usr/sbin:/usr/bin"/> | ||
</method_environment> | ||
</method_context> | ||
</exec_method> | ||
<exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/> | ||
<property_group name="application" type="application"></property_group> | ||
<property_group name="startd" type="framework"> | ||
<propval name="duration" type="astring" value="child"/> | ||
<propval name="ignore_error" type="astring" value="core,signal"/> | ||
</property_group> | ||
<template> | ||
<common_name> | ||
<loctext xml:lang="C">Scan /service directory to start and monitor a collection of services.</loctext> | ||
</common_name> | ||
</template> | ||
</service> | ||
</service_bundle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters