forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I noticed there's no smf manifest for apcupsd. This is a naive attempt at generating one. This is what I created for the gz, installed apcupsd from the tools pkgsrc path.
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="application-apcupsd" >
<service name="application/apcupsd" type="service" version="1" >
<create_default_instance enabled="true" />
<dependency name="dep0" grouping="require_all" restart_on="error" type="service" >
<service_fmri value="svc:/milestone/multi-user:default" />
</dependency>
<exec_method type="method" name="start" exec="/opt/tools/sbin/apcupsd -f /opt/tools/etc/apcupsd/apcupsd.conf &" timeout_seconds="10" >
<method_context working_directory="/opt/tools/etc/apcupsd" >
<method_credential user="root" group="staff" />
</method_context>
</exec_method>
<exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
<template >
<common_name >
<loctext xml:lang="C" >apcupsd</loctext>
</common_name>
</template>
</service>
</service_bundle>
Metadata
Metadata
Assignees
Labels
No labels